Hide operating mode button by default
This commit is contained in:
parent
b0f72fc736
commit
1ffd63c83a
1 changed files with 3 additions and 1 deletions
|
@ -34,6 +34,8 @@ import info.nightscout.utils.DecimalFormatter;
|
||||||
|
|
||||||
public class LocalInsightFragment extends SubscriberFragment implements View.OnClickListener {
|
public class LocalInsightFragment extends SubscriberFragment implements View.OnClickListener {
|
||||||
|
|
||||||
|
private static final boolean ENABLE_OPERATING_MODE_BUTTON = false;
|
||||||
|
|
||||||
private boolean viewsCreated;
|
private boolean viewsCreated;
|
||||||
private Button operatingMode;
|
private Button operatingMode;
|
||||||
private Button tbrOverNotification;
|
private Button tbrOverNotification;
|
||||||
|
@ -218,7 +220,7 @@ public class LocalInsightFragment extends SubscriberFragment implements View.OnC
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
int string = 0;
|
int string = 0;
|
||||||
operatingMode.setVisibility(View.VISIBLE);
|
if (ENABLE_OPERATING_MODE_BUTTON) operatingMode.setVisibility(View.VISIBLE);
|
||||||
operatingMode.setEnabled(operatingModeCallback == null);
|
operatingMode.setEnabled(operatingModeCallback == null);
|
||||||
switch (LocalInsightPlugin.getInstance().getOperatingMode()) {
|
switch (LocalInsightPlugin.getInstance().getOperatingMode()) {
|
||||||
case STARTED:
|
case STARTED:
|
||||||
|
|
Loading…
Reference in a new issue