diff --git a/app/src/main/java/com/stevesoltys/seedvault/ui/storage/StorageRootFetcher.kt b/app/src/main/java/com/stevesoltys/seedvault/ui/storage/StorageRootFetcher.kt
index 44e11997..76eec4a6 100644
--- a/app/src/main/java/com/stevesoltys/seedvault/ui/storage/StorageRootFetcher.kt
+++ b/app/src/main/java/com/stevesoltys/seedvault/ui/storage/StorageRootFetcher.kt
@@ -147,7 +147,10 @@ internal class StorageRootFetcher(private val context: Context, private val isRe
icon = getIcon(context, authority, rootId, cursor.getInt(COLUMN_ICON)),
title = cursor.getString(COLUMN_TITLE)!!,
summary = cursor.getString(COLUMN_SUMMARY),
- availableBytes = cursor.getLong(COLUMN_AVAILABLE_BYTES),
+ availableBytes = cursor.getLong(COLUMN_AVAILABLE_BYTES).let { bytes ->
+ // AOSP 11 reports -1 instead of null
+ if (bytes == -1L) null else bytes
+ },
isUsb = flags and FLAG_REMOVABLE_USB != 0
)
}
diff --git a/app/src/main/res/drawable/ic_phone_android.xml b/app/src/main/res/drawable/ic_phone_android.xml
index bdfea794..f13cee89 100644
--- a/app/src/main/res/drawable/ic_phone_android.xml
+++ b/app/src/main/res/drawable/ic_phone_android.xml
@@ -5,6 +5,6 @@
android:viewportWidth="24.0"
android:viewportHeight="24.0">
diff --git a/app/src/main/res/drawable/ic_usb.xml b/app/src/main/res/drawable/ic_usb.xml
index f14a2572..db0b7d02 100644
--- a/app/src/main/res/drawable/ic_usb.xml
+++ b/app/src/main/res/drawable/ic_usb.xml
@@ -5,6 +5,6 @@
android:viewportWidth="24.0"
android:viewportHeight="24.0">