Skip to content

Commit

Permalink
Glimpse: values() -> entries
Browse files Browse the repository at this point in the history
Change-Id: Ia966d5b7569616d00524981b24a8ef94f037cf54
  • Loading branch information
SebaUbuntu committed Nov 28, 2024
1 parent ac3edfd commit 09bbf4e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/org/lineageos/glimpse/flow/AlbumFlow.kt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class AlbumFlow(

val selectionArgs = listOfNotNull(
bucketId.takeIf {
MediaStoreBuckets.values().none { bucket -> it == bucket.id }
MediaStoreBuckets.entries.none { bucket -> it == bucket.id }
}?.toString(),
rawMimeType,
).toTypedArray()
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/org/lineageos/glimpse/flow/MediaFlow.kt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class MediaFlow(

val selectionArgs = listOfNotNull(
bucketId.takeIf {
MediaStoreBuckets.values().none { bucket -> it == bucket.id }
MediaStoreBuckets.entries.none { bucket -> it == bucket.id }
}?.toString(),
rawMimeType,
).toTypedArray()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ enum class MediaType(
"application/vnd.ms-sstr+xml",
)

fun fromMediaStoreValue(value: Int) = values().first {
fun fromMediaStoreValue(value: Int) = entries.first {
value == it.mediaStoreValue
}

Expand Down

0 comments on commit 09bbf4e

Please sign in to comment.