Glimpse: Simplify bucket id check in onCreateLoader()

Change-Id: I5b88c0580413902db502fb4330b35b7d2b120bdf
This commit is contained in:
LuK1337 2023-08-06 09:57:42 +02:00
parent 71b46b0dad
commit 5c225960f8
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ class MediaViewerFragment : Fragment(
projection,
selection,
album?.takeIf {
it.id != MediaStoreBuckets.MEDIA_STORE_BUCKET_FAVORITES.id
MediaStoreBuckets.values().any { bucket -> it.id == bucket.id }
}?.let { arrayOf(it.id.toString()) },
MediaStore.Files.FileColumns.DATE_ADDED + " DESC"
)