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).
This commit is contained in:
parent
b1e3b45ce9
commit
627cb8e9b2
3 changed files with 1 additions and 4 deletions
|
@ -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));
|
||||
|
|
|
@ -234,7 +234,7 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:width="32dp"
|
||||
android:checked="true" />
|
||||
android:checked="false" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
|
|
|
@ -703,7 +703,6 @@
|
|||
<string name="date">Date</string>
|
||||
<string name="invalid">INVALID</string>
|
||||
<string name="key_wizard_include_bg">wizard_include_bg</string>
|
||||
<string name="key_wizard_include_tt">wizard_include_tt</string>
|
||||
<string name="key_wizard_include_cob">wizard_include_cob</string>
|
||||
<string name="key_wizard_include_trend_bg">wizard_include_trend_bg</string>
|
||||
<string name="key_wizard_include_bolus_iob">wizard_include_bolus_iob</string>
|
||||
|
|
Loading…
Reference in a new issue