From 2693797bbd9924eb5965ef8ab8215db478b7689c Mon Sep 17 00:00:00 2001 From: triplem <160079+triplem@users.noreply.github.com> Date: Fri, 7 Dec 2018 22:36:22 +0100 Subject: [PATCH] fix duplication of resume and reconnect --- .../androidaps/plugins/Overview/OverviewFragment.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java index 1a5413e009..0ce86b0080 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java @@ -459,7 +459,9 @@ public class OverviewFragment extends Fragment implements View.OnClickListener, menu.add(MainApp.gs(R.string.suspendloopfor3h)); menu.add(MainApp.gs(R.string.suspendloopfor10h)); } else { - menu.add(MainApp.gs(R.string.resume)); + if (!loopPlugin.isDisconnected()) { + menu.add(MainApp.gs(R.string.resume)); + } } }