From 41b1fb0ad163ca499cb28a25571ffb892e226ab6 Mon Sep 17 00:00:00 2001 From: Matija Nalis Date: Sat, 9 Oct 2021 05:03:43 +0200 Subject: [PATCH] more QuestTypeAchievement fixes --- .../streetcomplete/quests/smoothness/AddRoadSmoothness.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/de/westnordost/streetcomplete/quests/smoothness/AddRoadSmoothness.kt b/app/src/main/java/de/westnordost/streetcomplete/quests/smoothness/AddRoadSmoothness.kt index 08015c99f4..4f06a0ee74 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/quests/smoothness/AddRoadSmoothness.kt +++ b/app/src/main/java/de/westnordost/streetcomplete/quests/smoothness/AddRoadSmoothness.kt @@ -7,6 +7,9 @@ import de.westnordost.streetcomplete.data.meta.updateWithCheckDate import de.westnordost.streetcomplete.data.osm.osmquests.OsmFilterQuestType import de.westnordost.streetcomplete.data.osm.edits.update_tags.StringMapChangesBuilder import de.westnordost.streetcomplete.quests.surface.Surface +import de.westnordost.streetcomplete.data.user.achievements.QuestTypeAchievement.BICYCLIST +import de.westnordost.streetcomplete.data.user.achievements.QuestTypeAchievement.BLIND +import de.westnordost.streetcomplete.data.user.achievements.QuestTypeAchievement.WHEELCHAIR class AddRoadSmoothness : OsmFilterQuestType() { @@ -27,6 +30,8 @@ class AddRoadSmoothness : OsmFilterQuestType() { override val icon = R.drawable.ic_quest_street_surface_detail override val isSplitWayEnabled = true + override val questTypeAchievements = listOf(BLIND, WHEELCHAIR, BICYCLIST) + override fun getTitle(tags: Map): Int { val hasName = tags.containsKey("name") val isSquare = tags["area"] == "yes"