Skip to content

Commit

Permalink
manually try to fix OtherAnswer() refactoring in Smooothness quest
Browse files Browse the repository at this point in the history
  • Loading branch information
mnalis committed Oct 9, 2021
1 parent 5167119 commit 6297d0c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import android.view.LayoutInflater
import androidx.appcompat.app.AlertDialog
import de.westnordost.streetcomplete.R
import de.westnordost.streetcomplete.quests.AImageListQuestAnswerFragment
import de.westnordost.streetcomplete.quests.OtherAnswer
import de.westnordost.streetcomplete.quests.surface.Surface
import de.westnordost.streetcomplete.quests.surface.asItem
import de.westnordost.streetcomplete.view.image_select.Item
Expand All @@ -14,8 +13,8 @@ import de.westnordost.streetcomplete.view.image_select.ItemViewHolder
class AddSmoothnessForm : AImageListQuestAnswerFragment<Smoothness, SmoothnessAnswer>() {

override val otherAnswers = listOf(
OtherAnswer(R.string.quest_smoothness_wrong_surface) { surfaceWrong() },
OtherAnswer(R.string.quest_smoothness_obstacle) { showObstacleHint() }
AnswerItem(R.string.quest_smoothness_wrong_surface) { surfaceWrong() },
AnswerItem(R.string.quest_smoothness_obstacle) { showObstacleHint() }
)

private val surfaceTag get() = osmElement!!.tags["surface"]
Expand Down

0 comments on commit 6297d0c

Please sign in to comment.