fix context teardown multiple times
This commit is contained in:
parent
caea154377
commit
e6db23d77c
@ -127,6 +127,8 @@ public class DoricPanelFragment extends Fragment implements IDoricNavigator {
|
|||||||
@Override
|
@Override
|
||||||
public void onDestroy() {
|
public void onDestroy() {
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
|
if (getActivity() == null || !getActivity().isFinishing()) {
|
||||||
doricPanel.onActivityDestroy();
|
doricPanel.onActivityDestroy();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user