Merge remote-tracking branch 'origin/dagger3' into rs
This commit is contained in:
commit
a0b22dae69
|
@ -1248,37 +1248,34 @@ public class OverviewFragment extends DaggerFragment implements View.OnClickList
|
||||||
quickWizardButton.setVisibility(View.GONE);
|
quickWizardButton.setVisibility(View.GONE);
|
||||||
|
|
||||||
// **** Various treatment buttons ****
|
// **** Various treatment buttons ****
|
||||||
if (carbsButton != null) {
|
if ((!activePlugin.getActivePump().getPumpDescription().storesCarbInfo ||
|
||||||
if (sp.getBoolean(R.string.key_show_carbs_button, true)
|
(pump.isInitialized() && !pump.isSuspended())) && carbsButton != null) {
|
||||||
&& (!activePlugin.getActivePump().getPumpDescription().storesCarbInfo ||
|
if (sp.getBoolean(R.string.key_show_carbs_button, true)) {
|
||||||
(pump.isInitialized() && !pump.isSuspended()))) {
|
|
||||||
carbsButton.setVisibility(View.VISIBLE);
|
carbsButton.setVisibility(View.VISIBLE);
|
||||||
} else {
|
} else {
|
||||||
carbsButton.setVisibility(View.GONE);
|
carbsButton.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pump.isInitialized() && !pump.isSuspended()) {
|
if (pump.isInitialized() && !pump.isSuspended() && treatmentButton != null) {
|
||||||
if (treatmentButton != null) {
|
if (sp.getBoolean(R.string.key_show_treatment_button, false)) {
|
||||||
if (sp.getBoolean(R.string.key_show_treatment_button, false)) {
|
treatmentButton.setVisibility(View.VISIBLE);
|
||||||
treatmentButton.setVisibility(View.VISIBLE);
|
} else {
|
||||||
} else {
|
treatmentButton.setVisibility(View.GONE);
|
||||||
treatmentButton.setVisibility(View.GONE);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (pump.isInitialized() && !pump.isSuspended() && wizardButton != null) {
|
}
|
||||||
if (sp.getBoolean(R.string.key_show_wizard_button, true)) {
|
if (pump.isInitialized() && !pump.isSuspended() && wizardButton != null) {
|
||||||
wizardButton.setVisibility(View.VISIBLE);
|
if (sp.getBoolean(R.string.key_show_wizard_button, true)) {
|
||||||
} else {
|
wizardButton.setVisibility(View.VISIBLE);
|
||||||
wizardButton.setVisibility(View.GONE);
|
} else {
|
||||||
}
|
wizardButton.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
if (pump.isInitialized() && !pump.isSuspended() && insulinButton != null) {
|
}
|
||||||
if (sp.getBoolean(R.string.key_show_insulin_button, true)) {
|
if (pump.isInitialized() && !pump.isSuspended() && insulinButton != null) {
|
||||||
insulinButton.setVisibility(View.VISIBLE);
|
if (sp.getBoolean(R.string.key_show_insulin_button, true)) {
|
||||||
} else {
|
insulinButton.setVisibility(View.VISIBLE);
|
||||||
insulinButton.setVisibility(View.GONE);
|
} else {
|
||||||
}
|
insulinButton.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue