solve #1449
This commit is contained in:
parent
91610e40e5
commit
43fcfaf5d6
1 changed files with 6 additions and 3 deletions
|
@ -461,15 +461,18 @@ public class OverviewFragment extends Fragment implements View.OnClickListener,
|
||||||
menu.add(MainApp.gs(R.string.disconnectpumpfor15m));
|
menu.add(MainApp.gs(R.string.disconnectpumpfor15m));
|
||||||
if (pumpDescription.tempDurationStep30mAllowed)
|
if (pumpDescription.tempDurationStep30mAllowed)
|
||||||
menu.add(MainApp.gs(R.string.disconnectpumpfor30m));
|
menu.add(MainApp.gs(R.string.disconnectpumpfor30m));
|
||||||
menu.add(MainApp.gs(R.string.disconnectpumpfor1h));
|
|
||||||
menu.add(MainApp.gs(R.string.disconnectpumpfor2h));
|
|
||||||
menu.add(MainApp.gs(R.string.disconnectpumpfor3h));
|
|
||||||
} else {
|
} else {
|
||||||
menu.add(MainApp.gs(R.string.resume));
|
menu.add(MainApp.gs(R.string.resume));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!loopPlugin.isEnabled(PluginType.LOOP))
|
if (!loopPlugin.isEnabled(PluginType.LOOP))
|
||||||
menu.add(MainApp.gs(R.string.enableloop));
|
menu.add(MainApp.gs(R.string.enableloop));
|
||||||
|
|
||||||
|
// menu-items visible even if loop is disabled (#1449)
|
||||||
|
menu.add(MainApp.gs(R.string.disconnectpumpfor1h));
|
||||||
|
menu.add(MainApp.gs(R.string.disconnectpumpfor2h));
|
||||||
|
menu.add(MainApp.gs(R.string.disconnectpumpfor3h));
|
||||||
|
|
||||||
} else if (v == activeProfileView) {
|
} else if (v == activeProfileView) {
|
||||||
menu.setHeaderTitle(MainApp.gs(R.string.profile));
|
menu.setHeaderTitle(MainApp.gs(R.string.profile));
|
||||||
menu.add(MainApp.gs(R.string.danar_viewprofile));
|
menu.add(MainApp.gs(R.string.danar_viewprofile));
|
||||||
|
|
Loading…
Reference in a new issue