diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/PumpInsightLocal/LocalInsightFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/PumpInsightLocal/LocalInsightFragment.java index ce29e208ad..10d7caef95 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/PumpInsightLocal/LocalInsightFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/PumpInsightLocal/LocalInsightFragment.java @@ -36,8 +36,8 @@ public class LocalInsightFragment extends SubscriberFragment implements View.OnC private boolean viewsCreated; private Button operatingMode; private Button tbrOverNotification; - private LinearLayout statusItemContainer = null; private Button refresh; + private LinearLayout statusItemContainer = null; private Callback operatingModeCallback; private Callback tbrOverNotificationCallback; @@ -58,6 +58,12 @@ public class LocalInsightFragment extends SubscriberFragment implements View.OnC return view; } + @Override + public synchronized void onDestroyView() { + super.onDestroyView(); + viewsCreated = false; + } + @Override public void onClick(View v) { if (v == operatingMode) {