Skip to content

Commit d0db3f4

Browse files
committed
things overlay: also show name
(make it more stolperstein-proof)
1 parent ef1ba6f commit d0db3f4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/src/main/java/de/westnordost/streetcomplete/overlays/things/ThingsOverlayForm.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import de.westnordost.streetcomplete.overlays.IAnswerItem
2323
import de.westnordost.streetcomplete.util.DummyFeature
2424
import de.westnordost.streetcomplete.util.getLocalesForFeatureDictionary
2525
import de.westnordost.streetcomplete.util.getLocationLabel
26+
import de.westnordost.streetcomplete.util.getNameAndLocationLabel
2627
import de.westnordost.streetcomplete.util.ktx.geometryType
2728
import de.westnordost.streetcomplete.view.controller.FeatureViewController
2829
import de.westnordost.streetcomplete.view.dialogs.SearchFeaturesDialog
@@ -88,7 +89,7 @@ class ThingsOverlayForm : AbstractOverlayForm() {
8889
super.onViewCreated(view, savedInstanceState)
8990

9091
// title hint label with name is a duplication, it is displayed in the UI already
91-
setTitleHintLabel(element?.tags?.let { getLocationLabel(it, resources) })
92+
setTitleHintLabel(element?.let { getNameAndLocationLabel(it, resources, null) })
9293
setMarkerIcon(R.drawable.ic_quest_dot)
9394

9495
featureCtrl = FeatureViewController(featureDictionary, binding.featureTextView, binding.featureIconView)

0 commit comments

Comments
 (0)