Only display Extended Bolus tab in Treatments if pump supports them.
(cherry picked from commit e862c35)
This commit is contained in:
parent
4046305380
commit
fdab7daf2c
1 changed files with 3 additions and 0 deletions
|
@ -47,6 +47,9 @@ public class TreatmentsFragment extends Fragment implements View.OnClickListener
|
||||||
profileSwitchTab = (TextView) view.findViewById(R.id.treatments_profileswitches);
|
profileSwitchTab = (TextView) view.findViewById(R.id.treatments_profileswitches);
|
||||||
treatmentsTab.setOnClickListener(this);
|
treatmentsTab.setOnClickListener(this);
|
||||||
extendedBolusesTab.setOnClickListener(this);
|
extendedBolusesTab.setOnClickListener(this);
|
||||||
|
if (!MainApp.getConfigBuilder().getPumpDescription().isExtendedBolusCapable) {
|
||||||
|
extendedBolusesTab.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
tempBasalsTab.setOnClickListener(this);
|
tempBasalsTab.setOnClickListener(this);
|
||||||
tempTargetTab.setOnClickListener(this);
|
tempTargetTab.setOnClickListener(this);
|
||||||
profileSwitchTab.setOnClickListener(this);
|
profileSwitchTab.setOnClickListener(this);
|
||||||
|
|
Loading…
Reference in a new issue