fix context teardown multiple times

This commit is contained in:
王劲鹏 2020-01-11 12:03:49 +08:00 committed by osborn
parent caea154377
commit e6db23d77c

View File

@ -127,6 +127,8 @@ public class DoricPanelFragment extends Fragment implements IDoricNavigator {
@Override @Override
public void onDestroy() { public void onDestroy() {
super.onDestroy(); super.onDestroy();
doricPanel.onActivityDestroy(); if (getActivity() == null || !getActivity().isFinishing()) {
doricPanel.onActivityDestroy();
}
} }
} }