mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-17 12:30:36 +01:00
fix java/util/function/BiConsumer compile error on some older devices
This commit is contained in:
parent
2dc18e7166
commit
e44299a472
@ -368,7 +368,7 @@ class MediaFetcher(val context: Context) {
|
|||||||
val sortDescending = currentGrouping and GROUP_DESCENDING != 0
|
val sortDescending = currentGrouping and GROUP_DESCENDING != 0
|
||||||
val sorted = mediumGroups.toSortedMap(if (sortDescending) compareByDescending { it } else compareBy { it })
|
val sorted = mediumGroups.toSortedMap(if (sortDescending) compareByDescending { it } else compareBy { it })
|
||||||
mediumGroups.clear()
|
mediumGroups.clear()
|
||||||
sorted.forEach { key, value ->
|
for ((key, value) in sorted) {
|
||||||
mediumGroups[key] = value
|
mediumGroups[key] = value
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user