From df7d93ab2a97bd03ad86246b12d3752c7bb4e31b Mon Sep 17 00:00:00 2001 From: TebbeUbben Date: Sun, 8 Apr 2018 20:33:07 +0200 Subject: [PATCH] Check for TDD support in updateGUI --- .../androidaps/plugins/Actions/ActionsFragment.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Actions/ActionsFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/Actions/ActionsFragment.java index 3fc565d89b..cc73571b9d 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Actions/ActionsFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Actions/ActionsFragment.java @@ -79,8 +79,6 @@ public class ActionsFragment extends SubscriberFragment implements View.OnClickL tddStats = view.findViewById(R.id.actions_tddstats); history = view.findViewById(R.id.actions_historybrowser); - if (!ConfigBuilderPlugin.getActivePump().getPumpDescription().supportsTDDs) tddStats.setVisibility(View.GONE); - profileSwitch.setOnClickListener(this); tempTarget.setOnClickListener(this); extendedBolus.setOnClickListener(this); @@ -192,6 +190,9 @@ public class ActionsFragment extends SubscriberFragment implements View.OnClickL tempTarget.setVisibility(View.GONE); else tempTarget.setVisibility(View.VISIBLE); + + if (!ConfigBuilderPlugin.getActivePump().getPumpDescription().supportsTDDs) tddStats.setVisibility(View.GONE); + else tddStats.setVisibility(View.VISIBLE); } }); }