From fa67aa69d5d3f3881d08ae5a8c4b4da8843c16e7 Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Mon, 23 Jul 2018 18:43:26 +0200 Subject: [PATCH] react to HypoTT on first click onClickListener, not OnCheckedListener was set for HypoTT --- .../androidaps/plugins/Overview/Dialogs/NewCarbsDialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/Dialogs/NewCarbsDialog.java b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/Dialogs/NewCarbsDialog.java index 26f46081ea..7ab35e69bd 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/Dialogs/NewCarbsDialog.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/Dialogs/NewCarbsDialog.java @@ -160,7 +160,7 @@ public class NewCarbsDialog extends DialogFragment implements OnClickListener, C startHypoTTCheckbox.setOnCheckedChangeListener(null); startHypoTTCheckbox.setChecked(true); } - startHypoTTCheckbox.setOnClickListener(this); + startHypoTTCheckbox.setOnCheckedChangeListener(this); setCancelable(true); getDialog().setCanceledOnTouchOutside(false);