@Override public void onDestroy() { super.onDestroy(); if (mWebView != null) { removeViewInLayout(mWebView); mWebView.destroyDrawingCache(); mWebView.destroy(); mWebView = null; } ((CycleControllerActivity) getContext()).getCycleController().unregister(this, false); }
@Override public void onPause() { super.onPause(); mWebView.pauseTimers(); mWebView.onPause(); }
@Override public void onResume() { super.onResume(); mWebView.resumeTimers(); mWebView.onResume(); }