Glimpse: Wrap initial query into runCatching

On some occasions media storage isn't mounted
quickly enough on boot before the app can be started.

Eg on emulator with no lockscreen media mount
might happen after the app gets started via cli by AS.

Change-Id: I01d8d18a9aa3c0c165acfc703c75e8aa3a436e32
Signed-off-by: Luca Stefani <luca.stefani.ge1@gmail.com>
diff --git a/app/src/main/java/org/lineageos/glimpse/ext/ContentResolver.kt b/app/src/main/java/org/lineageos/glimpse/ext/ContentResolver.kt
index f0dbd27..3cb7a8a 100644
--- a/app/src/main/java/org/lineageos/glimpse/ext/ContentResolver.kt
+++ b/app/src/main/java/org/lineageos/glimpse/ext/ContentResolver.kt
@@ -73,9 +73,11 @@
 
     // The first set of values must always be generated and cannot (shouldn't) be cancelled.
     launch(Dispatchers.IO) {
-        trySend(
-            query(uri, projection, queryArgs, null)
-        )
+        runCatching {
+            trySend(
+                query(uri, projection, queryArgs, null)
+            )
+        }
     }
 
     awaitClose {