Merge remote-tracking branch 'origin/dagger3' into rs
This commit is contained in:
commit
a0b22dae69
|
@ -1248,18 +1248,16 @@ 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 {
|
||||||
|
@ -1280,7 +1278,6 @@ public class OverviewFragment extends DaggerFragment implements View.OnClickList
|
||||||
insulinButton.setVisibility(View.GONE);
|
insulinButton.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// **** BG value ****
|
// **** BG value ****
|
||||||
if (lastBG == null) { //left this here as it seems you want to exit at this point if it is null...
|
if (lastBG == null) { //left this here as it seems you want to exit at this point if it is null...
|
||||||
|
|
Loading…
Reference in a new issue