Disable unfinished dialogs.
This commit is contained in:
parent
f88894ea02
commit
3ff56c7fa2
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue