diff --git a/app/src/main/java/de/westnordost/streetcomplete/overlays/way_lit/WayLitOverlayForm.kt b/app/src/main/java/de/westnordost/streetcomplete/overlays/way_lit/WayLitOverlayForm.kt index 895633afbc..c39065a5c9 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/overlays/way_lit/WayLitOverlayForm.kt +++ b/app/src/main/java/de/westnordost/streetcomplete/overlays/way_lit/WayLitOverlayForm.kt @@ -12,7 +12,6 @@ import de.westnordost.streetcomplete.osm.lit.LitStatus import de.westnordost.streetcomplete.osm.lit.LitStatus.AUTOMATIC import de.westnordost.streetcomplete.osm.lit.LitStatus.NIGHT_AND_DAY import de.westnordost.streetcomplete.osm.lit.LitStatus.NO -import de.westnordost.streetcomplete.osm.lit.LitStatus.UNSUPPORTED import de.westnordost.streetcomplete.osm.lit.LitStatus.YES import de.westnordost.streetcomplete.osm.lit.applyTo import de.westnordost.streetcomplete.osm.lit.asItem diff --git a/app/src/main/java/de/westnordost/streetcomplete/screens/main/edithistory/EditHistoryViewModel.kt b/app/src/main/java/de/westnordost/streetcomplete/screens/main/edithistory/EditHistoryViewModel.kt index c6fa45ea9f..4d730f4403 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/screens/main/edithistory/EditHistoryViewModel.kt +++ b/app/src/main/java/de/westnordost/streetcomplete/screens/main/edithistory/EditHistoryViewModel.kt @@ -87,8 +87,11 @@ class EditHistoryViewModelImpl( override fun select(editKey: EditKey?) { selectedEdit.value = - if (editKey != null) edits.value.firstOrNull { it.key == editKey } - else null + if (editKey != null) { + edits.value.firstOrNull { it.key == editKey } + } else { + null + } } override fun undo(editKey: EditKey) {