Skip to content

Commit

Permalink
Merge pull request #1459 from matkoniecz/minor_refactoring
Browse files Browse the repository at this point in the history
use available function
  • Loading branch information
westnordost authored Jul 5, 2019
2 parents 569c770 + 7180c99 commit 3c9752e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ abstract class AbstractQuestAnswerFragment<T> : AbstractBottomSheetFragment() {
AlertDialog.Builder(context!!)
.setTitle(R.string.quest_leave_new_note_title)
.setMessage(R.string.quest_leave_new_note_description)
.setNegativeButton(R.string.quest_leave_new_note_no) { _, _ -> questAnswerComponent.onSkippedQuest() }
.setNegativeButton(R.string.quest_leave_new_note_no) { _, _ -> skipQuest() }
.setPositiveButton(R.string.quest_leave_new_note_yes) { _, _ ->
val questTitle = englishResources.getQuestTitle(questType, osmElement, featureDictionaryFuture)
questAnswerComponent.onComposeNote(questTitle)
Expand Down

0 comments on commit 3c9752e

Please sign in to comment.