Skip to content

Commit

Permalink
QuestTypeAchievement compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
mnalis committed Oct 9, 2021
1 parent 267c461 commit 6ba78e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES-mnalis.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ From `helium314/smoothness`:
* manually try to fix OtherAnswer() refactoring
* try to fix duplicate "quest_presets_delete_message" ?
* try to fix style renames
* QuestTypeAchievement compile error

## TODO
* update APK build code, and put date/version/last commit in filename.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 AddPathSmoothness : OsmFilterQuestType<SmoothnessAnswer>() {

Expand All @@ -31,6 +34,8 @@ class AddPathSmoothness : OsmFilterQuestType<SmoothnessAnswer>() {
override val icon = R.drawable.ic_quest_path_surface_detail
override val isSplitWayEnabled = true

override val questTypeAchievements = listOf(BLIND, WHEELCHAIR, BICYCLIST)

override fun getTitle(tags: Map<String, String>): Int {
val hasName = tags.containsKey("name")
val isSquare = tags["area"] == "yes"
Expand Down

0 comments on commit 6ba78e0

Please sign in to comment.