-
-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5533 from matkoniecz/confusing
covered by building answer in AddIsAmenityIndoor
- Loading branch information
Showing
4 changed files
with
30 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
...rc/main/java/de/westnordost/streetcomplete/quests/amenity_indoor/IsAmenityIndoorAnswer.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package de.westnordost.streetcomplete.quests.amenity_indoor | ||
|
||
enum class IsAmenityIndoorAnswer { INDOOR, OUTDOOR, COVERED } |
16 changes: 16 additions & 0 deletions
16
app/src/main/java/de/westnordost/streetcomplete/quests/amenity_indoor/IsAmenityIndoorForm.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package de.westnordost.streetcomplete.quests.amenity_indoor | ||
|
||
import de.westnordost.streetcomplete.R | ||
import de.westnordost.streetcomplete.quests.AbstractOsmQuestForm | ||
import de.westnordost.streetcomplete.quests.AnswerItem | ||
|
||
class IsAmenityIndoorForm : AbstractOsmQuestForm<IsAmenityIndoorAnswer>() { | ||
override val buttonPanelAnswers = listOf( | ||
AnswerItem(R.string.quest_generic_hasFeature_no) { applyAnswer(IsAmenityIndoorAnswer.OUTDOOR) }, | ||
AnswerItem(R.string.quest_generic_hasFeature_yes) { applyAnswer(IsAmenityIndoorAnswer.INDOOR) } | ||
) | ||
|
||
override val otherAnswers = listOf( | ||
AnswerItem(R.string.quest_isAmenityIndoor_outside_covered) { applyAnswer(IsAmenityIndoorAnswer.COVERED) } | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters