Glimpse: Only specify the necessary projections to AlbumsProjection

Change-Id: I6289cc0f35bce8a28fb6cf8de3da725b11a819ab
This commit is contained in:
Luca Stefani 2023-08-08 22:48:04 +02:00
parent f3869838c4
commit 72e7b9b16f
1 changed files with 5 additions and 1 deletions

View File

@ -18,7 +18,11 @@ object MediaQuery {
MediaStore.Files.FileColumns.DATE_ADDED, MediaStore.Files.FileColumns.DATE_ADDED,
) )
val AlbumsProjection = arrayOf( 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_ID,
MediaStore.Files.FileColumns.BUCKET_DISPLAY_NAME, MediaStore.Files.FileColumns.BUCKET_DISPLAY_NAME,
) + MediaProjection )
} }