From 627cb8e9b2bfec42b7ac61595fc19adffd564afe Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Sat, 9 Sep 2017 16:37:08 +0200 Subject: [PATCH] WizardDialog: don't persist state of tt checkbox, default to false. This assumes that a default is not useful, as it needs to be decided whether this is needed on each case (using tt when bolusing to start eating soon, but not using it when bolusing for the meal at the end of a tt). --- .../androidaps/plugins/Overview/Dialogs/WizardDialog.java | 2 -- app/src/main/res/layout/overview_wizard_dialog.xml | 2 +- app/src/main/res/values/strings.xml | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) 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 bbfc688252..4b81737a0e 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 @@ -266,7 +266,6 @@ public class WizardDialog extends DialogFragment implements OnClickListener, Com private void saveCheckedStates() { SP.putBoolean(getString(R.string.key_wizard_include_bg), bgCheckbox.isChecked()); - SP.putBoolean(getString(R.string.key_wizard_include_tt), ttCheckbox.isChecked()); SP.putBoolean(getString(R.string.key_wizard_include_cob), cobCheckbox.isChecked()); SP.putBoolean(getString(R.string.key_wizard_include_trend_bg), bgtrendCheckbox.isChecked()); SP.putBoolean(getString(R.string.key_wizard_include_bolus_iob), bolusIobCheckbox.isChecked()); @@ -275,7 +274,6 @@ public class WizardDialog extends DialogFragment implements OnClickListener, Com private void loadCheckedStates() { bgCheckbox.setChecked(SP.getBoolean(getString(R.string.key_wizard_include_bg), true)); - ttCheckbox.setChecked(SP.getBoolean(getString(R.string.key_wizard_include_tt), false)); bgtrendCheckbox.setChecked(SP.getBoolean(getString(R.string.key_wizard_include_trend_bg), false)); cobCheckbox.setChecked(SP.getBoolean(getString(R.string.key_wizard_include_cob), false)); bolusIobCheckbox.setChecked(SP.getBoolean(getString(R.string.key_wizard_include_bolus_iob), true)); diff --git a/app/src/main/res/layout/overview_wizard_dialog.xml b/app/src/main/res/layout/overview_wizard_dialog.xml index a8aa4bdd4f..faaae6967d 100644 --- a/app/src/main/res/layout/overview_wizard_dialog.xml +++ b/app/src/main/res/layout/overview_wizard_dialog.xml @@ -234,7 +234,7 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:width="32dp" - android:checked="true" /> + android:checked="false" /> Date INVALID wizard_include_bg - wizard_include_tt wizard_include_cob wizard_include_trend_bg wizard_include_bolus_iob