From 3ff56c7fa2a83f8381499fc40c1c05fb88481fd0 Mon Sep 17 00:00:00 2001 From: Johannes Mockenhaupt Date: Tue, 13 Feb 2018 19:28:45 +0100 Subject: [PATCH] Disable unfinished dialogs. --- app/src/main/java/info/nightscout/androidaps/Config.java | 2 ++ .../androidaps/plugins/PumpCombo/ComboFragment.java | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/Config.java b/app/src/main/java/info/nightscout/androidaps/Config.java index 52675c4f09..0fb958b85a 100644 --- a/app/src/main/java/info/nightscout/androidaps/Config.java +++ b/app/src/main/java/info/nightscout/androidaps/Config.java @@ -43,4 +43,6 @@ public class Config { public static final boolean logDanaBTComm = true; public static boolean logDanaMessageDetail = true; public static final boolean logDanaSerialEngine = true; + + public static final boolean enableComboBetaFeatures = false; } diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboFragment.java index fbc0325020..601cc95ea8 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpCombo/ComboFragment.java @@ -16,6 +16,7 @@ import com.squareup.otto.Subscribe; import org.apache.commons.lang3.StringUtils; +import info.nightscout.androidaps.Config; import info.nightscout.androidaps.plugins.PumpCombo.ruffyscripter.PumpState; import info.nightscout.androidaps.plugins.PumpCombo.ruffyscripter.history.Bolus; import info.nightscout.androidaps.MainApp; @@ -205,8 +206,10 @@ public class ComboFragment extends SubscriberFragment implements View.OnClickLis if (plugin.isInitialized()) { refreshButton.setVisibility(View.VISIBLE); - alertsButton.setVisibility(View.VISIBLE); - tddsButton.setVisibility(View.VISIBLE); + if (Config.enableComboBetaFeatures) { + alertsButton.setVisibility(View.VISIBLE); + tddsButton.setVisibility(View.VISIBLE); + } fullHistoryButton.setVisibility(View.VISIBLE); // battery