Disable unfinished dialogs.

This commit is contained in:
Johannes Mockenhaupt 2018-02-13 19:28:45 +01:00
parent f88894ea02
commit 3ff56c7fa2
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1
2 changed files with 7 additions and 2 deletions

View file

@ -43,4 +43,6 @@ public class Config {
public static final boolean logDanaBTComm = true; public static final boolean logDanaBTComm = true;
public static boolean logDanaMessageDetail = true; public static boolean logDanaMessageDetail = true;
public static final boolean logDanaSerialEngine = true; public static final boolean logDanaSerialEngine = true;
public static final boolean enableComboBetaFeatures = false;
} }

View file

@ -16,6 +16,7 @@ import com.squareup.otto.Subscribe;
import org.apache.commons.lang3.StringUtils; 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.PumpState;
import info.nightscout.androidaps.plugins.PumpCombo.ruffyscripter.history.Bolus; import info.nightscout.androidaps.plugins.PumpCombo.ruffyscripter.history.Bolus;
import info.nightscout.androidaps.MainApp; import info.nightscout.androidaps.MainApp;
@ -205,8 +206,10 @@ public class ComboFragment extends SubscriberFragment implements View.OnClickLis
if (plugin.isInitialized()) { if (plugin.isInitialized()) {
refreshButton.setVisibility(View.VISIBLE); refreshButton.setVisibility(View.VISIBLE);
if (Config.enableComboBetaFeatures) {
alertsButton.setVisibility(View.VISIBLE); alertsButton.setVisibility(View.VISIBLE);
tddsButton.setVisibility(View.VISIBLE); tddsButton.setVisibility(View.VISIBLE);
}
fullHistoryButton.setVisibility(View.VISIBLE); fullHistoryButton.setVisibility(View.VISIBLE);
// battery // battery