Glimpse: Simplify bucket id check in onCreateLoader()
Change-Id: I5b88c0580413902db502fb4330b35b7d2b120bdf
This commit is contained in:
parent
71b46b0dad
commit
5c225960f8
|
@ -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"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue