From e58aeab60fa2131d503ae90aad4fb94fd92d50cd Mon Sep 17 00:00:00 2001 From: Kyle Hensel Date: Thu, 22 Feb 2024 22:03:24 +1100 Subject: [PATCH 1/2] add 'gas' as an option for bbq fuel --- .../streetcomplete/quests/bbq_fuel/AddBbqFuelForm.kt | 2 ++ .../streetcomplete/quests/bbq_fuel/BbqFuelAnswer.kt | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/de/westnordost/streetcomplete/quests/bbq_fuel/AddBbqFuelForm.kt b/app/src/main/java/de/westnordost/streetcomplete/quests/bbq_fuel/AddBbqFuelForm.kt index 48931e92b5..d6c14aa24d 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/quests/bbq_fuel/AddBbqFuelForm.kt +++ b/app/src/main/java/de/westnordost/streetcomplete/quests/bbq_fuel/AddBbqFuelForm.kt @@ -7,6 +7,7 @@ import de.westnordost.streetcomplete.quests.AnswerItem import de.westnordost.streetcomplete.quests.TextItem import de.westnordost.streetcomplete.quests.bbq_fuel.BbqFuel.CHARCOAL import de.westnordost.streetcomplete.quests.bbq_fuel.BbqFuel.ELECTRIC +import de.westnordost.streetcomplete.quests.bbq_fuel.BbqFuel.GAS import de.westnordost.streetcomplete.quests.bbq_fuel.BbqFuel.WOOD class AddBbqFuelForm : AListQuestForm() { @@ -14,6 +15,7 @@ class AddBbqFuelForm : AListQuestForm() { TextItem(WOOD, R.string.quest_bbq_fuel_wood), TextItem(ELECTRIC, R.string.quest_bbq_fuel_electric), TextItem(CHARCOAL, R.string.quest_bbq_fuel_charcoal), + TextItem(GAS, R.string.quest_bbq_fuel_gas), ) override val otherAnswers = listOf( diff --git a/app/src/main/java/de/westnordost/streetcomplete/quests/bbq_fuel/BbqFuelAnswer.kt b/app/src/main/java/de/westnordost/streetcomplete/quests/bbq_fuel/BbqFuelAnswer.kt index 9eb9353830..3ef08f4301 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/quests/bbq_fuel/BbqFuelAnswer.kt +++ b/app/src/main/java/de/westnordost/streetcomplete/quests/bbq_fuel/BbqFuelAnswer.kt @@ -5,7 +5,8 @@ sealed interface BbqFuelAnswer enum class BbqFuel(val osmValue: String) : BbqFuelAnswer { WOOD("wood"), ELECTRIC("electric"), - CHARCOAL("charcoal") + CHARCOAL("charcoal"), + GAS("gas"), } data object IsFirePitAnswer : BbqFuelAnswer From 25a24e060ff7d891ef9cdcba4071dea4e26141b8 Mon Sep 17 00:00:00 2001 From: Kyle Hensel Date: Fri, 23 Feb 2024 08:49:04 +1100 Subject: [PATCH 2/2] add translatable string --- app/src/main/res/values/strings.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 6dd5b21221..adf76e5f74 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1317,6 +1317,7 @@ If there are no signs along the whole street which apply for the highlighted sec Wood Electric Charcoal + Gas It’s a fire enclosure Fire enclosures don’t have a cooking surface (e.g. grate/plate), as opposed to grills.