am a4909cba: Hide the custom view when we get onPause() DO NOT MERGE
* commit 'a4909cba214f3680063367e52044e9d74824c272':
Hide the custom view when we get onPause() DO NOT MERGE
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java
index 0a3fec9..44ab307 100644
--- a/src/com/android/browser/BrowserActivity.java
+++ b/src/com/android/browser/BrowserActivity.java
@@ -942,6 +942,10 @@
// unregister network state listener
unregisterReceiver(mNetworkStateIntentReceiver);
WebView.disablePlatformNotifications();
+
+ if (mCustomView != null) {
+ mTabControl.getCurrentWebView().getWebChromeClient().onHideCustomView();
+ }
}
@Override
@@ -2777,7 +2781,6 @@
void onHideCustomView() {
if (mCustomView == null)
return;
-
// Hide the custom view.
mCustomView.setVisibility(View.GONE);
// Remove the custom view from its container.