When we run onPause, be sure to hide any custom views (such as
the HTML5 video view) so that when the activity restores we don't
have anything overlaying the page.
Bug:
3240426
Change-Id: Ic93286eab40cda814682bc023f3648b502545256
// unregister network state listener
unregisterReceiver(mNetworkStateIntentReceiver);
WebView.disablePlatformNotifications();
+
+ if (mCustomView != null) {
+ mTabControl.getCurrentWebView().getWebChromeClient().onHideCustomView();
+ }
}
@Override
void onHideCustomView() {
if (mCustomView == null)
return;
-
// Hide the custom view.
mCustomView.setVisibility(View.GONE);
// Remove the custom view from its container.