make new i & c buttons visible by default

This commit is contained in:
Milos Kozak 2018-02-25 17:52:30 +01:00
parent 7b91f0d490
commit f62cac1b66
2 changed files with 6 additions and 6 deletions

View file

@ -1287,7 +1287,7 @@ public class OverviewFragment extends Fragment implements View.OnClickListener,
// **** Various treatment buttons ****
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 ||
(pump.isInitialized() && !pump.isSuspended())) {
carbsButton.setVisibility(View.VISIBLE);
@ -1305,14 +1305,14 @@ public class OverviewFragment extends Fragment implements View.OnClickListener,
}
}
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);
} else {
wizardButton.setVisibility(View.GONE);
}
}
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);
} else {
insulinButton.setVisibility(View.GONE);

View file

@ -4,7 +4,7 @@
<PreferenceCategory android:title="@string/overview">
<PreferenceScreen android:title="@string/overview_buttons_selection">
<SwitchPreference
android:defaultValue="true"
android:defaultValue="false"
android:key="@string/key_show_treatment_button"
android:title="Treatments" />
<SwitchPreference
@ -13,7 +13,7 @@
android:title="@string/overview_calculator_label"/>
<SwitchPreference
android:defaultValue="false"
android:defaultValue="true"
android:key="@string/key_show_insulin_button"
android:title="Insulin" />
<com.andreabaccega.widget.ValidatingEditTextPreference
@ -57,7 +57,7 @@
android:key="@string/key_insulin_button_increment_3"/>
<SwitchPreference
android:defaultValue="false"
android:defaultValue="true"
android:key="@string/key_show_carbs_button"
android:title="Carbs" />
<com.andreabaccega.widget.ValidatingEditTextPreference