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

View file

@ -368,7 +368,7 @@ class MediaFetcher(val context: Context) {
val sortDescending = currentGrouping and GROUP_DESCENDING != 0
val sorted = mediumGroups.toSortedMap(if (sortDescending) compareByDescending { it } else compareBy { it })
mediumGroups.clear()
sorted.forEach { key, value ->
for ((key, value) in sorted) {
mediumGroups[key] = value
}