diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Maintenance/MaintenanceFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/Maintenance/MaintenanceFragment.java index 733a3a5eb1..ad30f33ad4 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Maintenance/MaintenanceFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Maintenance/MaintenanceFragment.java @@ -18,6 +18,22 @@ import info.nightscout.utils.ImportExportPrefs; */ public class MaintenanceFragment extends Fragment { + private Fragment f; + + @Override + public void onResume() { + super.onResume(); + + this.f = this; + } + + @Override + public void onPause() { + super.onPause(); + + this.f = null; + } + @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {