From 174d6019ff32830cb85d009ef9808624a763bd5c Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sun, 9 Oct 2016 11:17:41 +0200 Subject: [PATCH] fix carbs limit in wizard --- .idea/misc.xml | 2 +- .../androidaps/plugins/Overview/Dialogs/WizardDialog.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index fbb68289f4..5d19981032 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -37,7 +37,7 @@ - + diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/Dialogs/WizardDialog.java b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/Dialogs/WizardDialog.java index 5c7a1ee8e5..cb195d09c7 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/Dialogs/WizardDialog.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/Dialogs/WizardDialog.java @@ -347,7 +347,7 @@ public class WizardDialog extends DialogFragment implements OnClickListener { return; } Integer carbsAfterConstraint = MainApp.getConfigBuilder().applyCarbsConstraints(c_carbs); - if (c_carbs != carbsAfterConstraint) { + if (c_carbs - carbsAfterConstraint != 0) { carbsInput.removeTextChangedListener(textWatcher); carbsInput.setText(""); carbsInput.addTextChangedListener(textWatcher);