Glimpse: Only specify the necessary projections to AlbumsProjection
Change-Id: I6289cc0f35bce8a28fb6cf8de3da725b11a819ab
This commit is contained in:
parent
f3869838c4
commit
72e7b9b16f
|
@ -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
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue