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
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
doricPanel.onActivityDestroy();
|
||||
if (getActivity() == null || !getActivity().isFinishing()) {
|
||||
doricPanel.onActivityDestroy();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user