Don't update fragment of destroying view
This commit is contained in:
parent
2770a49869
commit
58a8845ec3
1 changed files with 7 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue