@Override protected void onPause() { MApplication.getInstance().getmNewsLifecycleHandler().onActivityPaused(this); ThirdUtils.statisticsInActivityPause(this); if (alertDialog != null && alertDialog.isShowing()) { alertDialog.hide(); } if (materialDialog != null && materialDialog.isShowing()) { materialDialog.hide(); } PreOnPause(); super.onPause(); }
@Override protected void onResume() { ThirdUtils.statisticsInActivityResume(this); PreOnResume(); super.onResume(); }