Skip to content

Commit

Permalink
fix #5631
Browse files Browse the repository at this point in the history
  • Loading branch information
westnordost committed May 15, 2024
1 parent c455a81 commit 25abdf8
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import de.westnordost.streetcomplete.R
import de.westnordost.streetcomplete.data.meta.AbbreviationsByLocale
import de.westnordost.streetcomplete.data.osm.mapdata.LatLon
import de.westnordost.streetcomplete.databinding.ViewStreetOrPlaceNameInputBinding
import de.westnordost.streetcomplete.osm.address.PlaceName
import de.westnordost.streetcomplete.osm.address.StreetOrPlaceName
import de.westnordost.streetcomplete.osm.address.StreetOrPlaceNameViewController
import de.westnordost.streetcomplete.quests.AbstractOsmQuestForm
Expand Down Expand Up @@ -72,8 +73,9 @@ class AddAddressStreetForm : AbstractOsmQuestForm<StreetOrPlaceName>() {
streetOrPlaceCtrl.selectStreetAt(position, clickAreaSizeInMeters)

override fun onClickOk() {
lastWasPlaceName = isShowingPlaceName
applyAnswer(streetOrPlaceCtrl.streetOrPlaceName!!)
val streetOrPlaceName = streetOrPlaceCtrl.streetOrPlaceName!!
lastWasPlaceName = streetOrPlaceName is PlaceName
applyAnswer(streetOrPlaceName)
}

override fun isFormComplete(): Boolean =
Expand Down

0 comments on commit 25abdf8

Please sign in to comment.