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
|
@ -47,6 +47,9 @@ public class TreatmentsFragment extends Fragment implements View.OnClickListener
|
|||
profileSwitchTab = (TextView) view.findViewById(R.id.treatments_profileswitches);
|
||||
treatmentsTab.setOnClickListener(this);
|
||||
extendedBolusesTab.setOnClickListener(this);
|
||||
if (!MainApp.getConfigBuilder().getPumpDescription().isExtendedBolusCapable) {
|
||||
extendedBolusesTab.setVisibility(View.GONE);
|
||||
}
|
||||
tempBasalsTab.setOnClickListener(this);
|
||||
tempTargetTab.setOnClickListener(this);
|
||||
profileSwitchTab.setOnClickListener(this);
|
||||
|
|
Loading…
Reference in a new issue