feat:add LifeCycle for DoricPanelFragment

This commit is contained in:
pengfei.zhou 2019-12-09 18:06:49 +08:00
parent eb12c2c4c5
commit 59a18400e5

View File

@ -101,4 +101,22 @@ public class DoricPanelFragment extends Fragment implements IDoricNavigator {
private NavController getNavController() {
return Navigation.findNavController(getView());
}
@Override
public void onResume() {
super.onResume();
doricPanel.onActivityResume();
}
@Override
public void onPause() {
super.onPause();
doricPanel.onActivityPause();
}
@Override
public void onDestroy() {
super.onDestroy();
doricPanel.onActivityDestroy();
}
}