Fix compile error on iOS
Use kotlin native getOrPut instead of Java/Android specific putIfAbsent
This commit is contained in:
@@ -338,9 +338,9 @@ fun KlottrAppShell(
|
||||
for (l in layers) {
|
||||
if (l.slug !in known) {
|
||||
// om inte redan satta: default av = false, default radius = grMin
|
||||
dynamicVisible.putIfAbsent(l.slug, false)
|
||||
dynamicVisible.getOrPut(l.slug) { false }
|
||||
layerRanges[l.slug]?.first?.let { defMin ->
|
||||
dynamicRadius.putIfAbsent(l.slug, defMin)
|
||||
dynamicRadius.getOrPut(l.slug) { defMin }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user