Don't update fragment of destroying view

This commit is contained in:
TebbeUbben 2019-01-18 23:44:26 +01:00
parent 2770a49869
commit 58a8845ec3

View file

@ -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) {