From 72e7b9b16f9f064fecec3734636d887df9a0d0a1 Mon Sep 17 00:00:00 2001 From: Luca Stefani Date: Tue, 8 Aug 2023 22:48:04 +0200 Subject: [PATCH] Glimpse: Only specify the necessary projections to AlbumsProjection Change-Id: I6289cc0f35bce8a28fb6cf8de3da725b11a819ab --- app/src/main/java/org/lineageos/glimpse/query/MediaQuery.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/lineageos/glimpse/query/MediaQuery.kt b/app/src/main/java/org/lineageos/glimpse/query/MediaQuery.kt index eb54f76..219b50a 100644 --- a/app/src/main/java/org/lineageos/glimpse/query/MediaQuery.kt +++ b/app/src/main/java/org/lineageos/glimpse/query/MediaQuery.kt @@ -18,7 +18,11 @@ object MediaQuery { MediaStore.Files.FileColumns.DATE_ADDED, ) val AlbumsProjection = arrayOf( + MediaStore.Files.FileColumns._ID, + MediaStore.Files.FileColumns.IS_FAVORITE, + MediaStore.Files.FileColumns.IS_TRASHED, + MediaStore.Files.FileColumns.MEDIA_TYPE, MediaStore.Files.FileColumns.BUCKET_ID, MediaStore.Files.FileColumns.BUCKET_DISPLAY_NAME, - ) + MediaProjection + ) }