Only display Extended Bolus tab in Treatments if pump supports them.

(cherry picked from commit e862c35)
This commit is contained in:
Johannes Mockenhaupt 2017-08-19 23:05:20 +02:00
parent 4046305380
commit fdab7daf2c
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -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);