fix java/util/function/BiConsumer compile error on some older devices

This commit is contained in:
tibbi 2018-06-27 21:01:16 +02:00
parent 2dc18e7166
commit e44299a472
1 changed files with 1 additions and 1 deletions

View File

@ -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
} }