From 36cb37d9ac0e29e86ad1c213a26f8aa1b9f68031 Mon Sep 17 00:00:00 2001 From: Philoul Date: Tue, 11 Jan 2022 21:04:43 +0100 Subject: [PATCH 1/2] Allow click on new wizard icons --- .../java/info/nightscout/androidaps/dialogs/WizardDialog.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/info/nightscout/androidaps/dialogs/WizardDialog.kt b/app/src/main/java/info/nightscout/androidaps/dialogs/WizardDialog.kt index 7d12c71687..06263b2a64 100644 --- a/app/src/main/java/info/nightscout/androidaps/dialogs/WizardDialog.kt +++ b/app/src/main/java/info/nightscout/androidaps/dialogs/WizardDialog.kt @@ -175,6 +175,10 @@ class WizardDialog : DaggerDialogFragment() { } dismiss() } + binding.bgEnabledIcon.setOnClickListener { binding.bgCheckbox.isChecked = !binding.bgCheckbox.isChecked } + binding.trendEnabledIcon.setOnClickListener { binding.bgTrendCheckbox.isChecked = !binding.bgTrendCheckbox.isChecked } + binding.cobEnabledIcon.setOnClickListener { binding.cobCheckbox.isChecked = !binding.cobCheckbox.isChecked } + binding.iobEnabledIcon.setOnClickListener { binding.iobCheckbox.isChecked = !binding.iobCheckbox.isChecked } // cancel button binding.cancel.setOnClickListener { aapsLogger.debug(LTag.APS, "Dialog canceled: ${this.javaClass.name}") From eb5a9aca550e73adde22d348904e76dc5e264cca Mon Sep 17 00:00:00 2001 From: Philoul Date: Tue, 11 Jan 2022 21:20:48 +0100 Subject: [PATCH 2/2] Process Cob Click --- .../java/info/nightscout/androidaps/dialogs/WizardDialog.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/dialogs/WizardDialog.kt b/app/src/main/java/info/nightscout/androidaps/dialogs/WizardDialog.kt index 06263b2a64..c6624bb3d3 100644 --- a/app/src/main/java/info/nightscout/androidaps/dialogs/WizardDialog.kt +++ b/app/src/main/java/info/nightscout/androidaps/dialogs/WizardDialog.kt @@ -177,8 +177,8 @@ class WizardDialog : DaggerDialogFragment() { } binding.bgEnabledIcon.setOnClickListener { binding.bgCheckbox.isChecked = !binding.bgCheckbox.isChecked } binding.trendEnabledIcon.setOnClickListener { binding.bgTrendCheckbox.isChecked = !binding.bgTrendCheckbox.isChecked } - binding.cobEnabledIcon.setOnClickListener { binding.cobCheckbox.isChecked = !binding.cobCheckbox.isChecked } - binding.iobEnabledIcon.setOnClickListener { binding.iobCheckbox.isChecked = !binding.iobCheckbox.isChecked } + binding.cobEnabledIcon.setOnClickListener { binding.cobCheckbox.isChecked = !binding.cobCheckbox.isChecked; processCobCheckBox(); } + binding.iobEnabledIcon.setOnClickListener { if (!binding.cobCheckbox.isChecked) binding.iobCheckbox.isChecked = !binding.iobCheckbox.isChecked } // cancel button binding.cancel.setOnClickListener { aapsLogger.debug(LTag.APS, "Dialog canceled: ${this.javaClass.name}")