From 65b98d639ccdb779078b7445584f690c56df05dc Mon Sep 17 00:00:00 2001 From: Helium314 Date: Sat, 23 Sep 2023 09:43:51 +0200 Subject: [PATCH] don't show ok button if category value is null --- .../streetcomplete/quests/AGroupedImageListQuestForm.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/de/westnordost/streetcomplete/quests/AGroupedImageListQuestForm.kt b/app/src/main/java/de/westnordost/streetcomplete/quests/AGroupedImageListQuestForm.kt index 9669fda7d4..dca609d163 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/quests/AGroupedImageListQuestForm.kt +++ b/app/src/main/java/de/westnordost/streetcomplete/quests/AGroupedImageListQuestForm.kt @@ -134,5 +134,5 @@ abstract class AGroupedImageListQuestForm : AbstractOsmQuestForm() { abstract fun onClickOk(value: I) - override fun isFormComplete() = selectedItem != null + override fun isFormComplete() = selectedItem?.value != null }