Skip to content

Commit

Permalink
I think the UI is more consistent when the other answers are not coll…
Browse files Browse the repository at this point in the history
…apsed like that
  • Loading branch information
westnordost committed Apr 30, 2024
1 parent a0ce886 commit 319a0d5
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,7 @@ abstract class AbstractOsmQuestForm<T> : AbstractQuestForm(), IsShowingQuestDeta
}

protected fun updateButtonPanel() {
val answers = assembleOtherAnswers()
val otherAnswersItem = if (answers.size == 1) {
answers.single()
} else {
AnswerItem(R.string.quest_generic_otherAnswers2) { showOtherAnswers() }
}
val otherAnswersItem = AnswerItem(R.string.quest_generic_otherAnswers2) { showOtherAnswers() }
setButtonPanelAnswers(listOf(otherAnswersItem) + buttonPanelAnswers)
}

Expand Down

0 comments on commit 319a0d5

Please sign in to comment.