Skip to content

Commit

Permalink
things overlay: also show name
Browse files Browse the repository at this point in the history
(make it more stolperstein-proof)
  • Loading branch information
westnordost committed Feb 14, 2024
1 parent ef1ba6f commit d0db3f4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import de.westnordost.streetcomplete.overlays.IAnswerItem
import de.westnordost.streetcomplete.util.DummyFeature
import de.westnordost.streetcomplete.util.getLocalesForFeatureDictionary
import de.westnordost.streetcomplete.util.getLocationLabel

Check failure on line 25 in app/src/main/java/de/westnordost/streetcomplete/overlays/things/ThingsOverlayForm.kt

View workflow job for this annotation

GitHub Actions / Kotlin

Unused import
import de.westnordost.streetcomplete.util.getNameAndLocationLabel
import de.westnordost.streetcomplete.util.ktx.geometryType
import de.westnordost.streetcomplete.view.controller.FeatureViewController
import de.westnordost.streetcomplete.view.dialogs.SearchFeaturesDialog
Expand Down Expand Up @@ -88,7 +89,7 @@ class ThingsOverlayForm : AbstractOverlayForm() {
super.onViewCreated(view, savedInstanceState)

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

featureCtrl = FeatureViewController(featureDictionary, binding.featureTextView, binding.featureIconView)
Expand Down

0 comments on commit d0db3f4

Please sign in to comment.