make new i & c buttons visible by default
This commit is contained in:
parent
7b91f0d490
commit
f62cac1b66
|
@ -1287,7 +1287,7 @@ public class OverviewFragment extends Fragment implements View.OnClickListener,
|
||||||
|
|
||||||
// **** Various treatment buttons ****
|
// **** Various treatment buttons ****
|
||||||
if (carbsButton != null) {
|
if (carbsButton != null) {
|
||||||
if (SP.getBoolean(R.string.key_show_carbs_button, false)
|
if (SP.getBoolean(R.string.key_show_carbs_button, true)
|
||||||
&& !ConfigBuilderPlugin.getActivePump().getPumpDescription().storesCarbInfo ||
|
&& !ConfigBuilderPlugin.getActivePump().getPumpDescription().storesCarbInfo ||
|
||||||
(pump.isInitialized() && !pump.isSuspended())) {
|
(pump.isInitialized() && !pump.isSuspended())) {
|
||||||
carbsButton.setVisibility(View.VISIBLE);
|
carbsButton.setVisibility(View.VISIBLE);
|
||||||
|
@ -1305,14 +1305,14 @@ public class OverviewFragment extends Fragment implements View.OnClickListener,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (wizardButton != null) {
|
if (wizardButton != null) {
|
||||||
if (SP.getBoolean(R.string.key_show_wizard_button, false)) {
|
if (SP.getBoolean(R.string.key_show_wizard_button, true)) {
|
||||||
wizardButton.setVisibility(View.VISIBLE);
|
wizardButton.setVisibility(View.VISIBLE);
|
||||||
} else {
|
} else {
|
||||||
wizardButton.setVisibility(View.GONE);
|
wizardButton.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (insulinButton != null) {
|
if (insulinButton != null) {
|
||||||
if (SP.getBoolean(R.string.key_show_insulin_button, false)) {
|
if (SP.getBoolean(R.string.key_show_insulin_button, true)) {
|
||||||
insulinButton.setVisibility(View.VISIBLE);
|
insulinButton.setVisibility(View.VISIBLE);
|
||||||
} else {
|
} else {
|
||||||
insulinButton.setVisibility(View.GONE);
|
insulinButton.setVisibility(View.GONE);
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<PreferenceCategory android:title="@string/overview">
|
<PreferenceCategory android:title="@string/overview">
|
||||||
<PreferenceScreen android:title="@string/overview_buttons_selection">
|
<PreferenceScreen android:title="@string/overview_buttons_selection">
|
||||||
<SwitchPreference
|
<SwitchPreference
|
||||||
android:defaultValue="true"
|
android:defaultValue="false"
|
||||||
android:key="@string/key_show_treatment_button"
|
android:key="@string/key_show_treatment_button"
|
||||||
android:title="Treatments" />
|
android:title="Treatments" />
|
||||||
<SwitchPreference
|
<SwitchPreference
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
android:title="@string/overview_calculator_label"/>
|
android:title="@string/overview_calculator_label"/>
|
||||||
|
|
||||||
<SwitchPreference
|
<SwitchPreference
|
||||||
android:defaultValue="false"
|
android:defaultValue="true"
|
||||||
android:key="@string/key_show_insulin_button"
|
android:key="@string/key_show_insulin_button"
|
||||||
android:title="Insulin" />
|
android:title="Insulin" />
|
||||||
<com.andreabaccega.widget.ValidatingEditTextPreference
|
<com.andreabaccega.widget.ValidatingEditTextPreference
|
||||||
|
@ -57,7 +57,7 @@
|
||||||
android:key="@string/key_insulin_button_increment_3"/>
|
android:key="@string/key_insulin_button_increment_3"/>
|
||||||
|
|
||||||
<SwitchPreference
|
<SwitchPreference
|
||||||
android:defaultValue="false"
|
android:defaultValue="true"
|
||||||
android:key="@string/key_show_carbs_button"
|
android:key="@string/key_show_carbs_button"
|
||||||
android:title="Carbs" />
|
android:title="Carbs" />
|
||||||
<com.andreabaccega.widget.ValidatingEditTextPreference
|
<com.andreabaccega.widget.ValidatingEditTextPreference
|
||||||
|
|
Loading…
Reference in a new issue