Chromium Code Reviews

Unified Diff: content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java

Issue 1104293006: Revert of [Android] Stop hiding the RWHV layer subtree when hiding the widget (patchset #12 id:3300… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2357
Patch Set: Rebase Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java
diff --git a/content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java b/content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java
index a5a94719881c94693f0bf2519877acd3a80b3075..bc460bf6d028469f4d529c9dfd83cecd28eae18b 100644
--- a/content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java
+++ b/content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java
@@ -71,8 +71,7 @@ public class ContentShellActivity extends Activity {
setContentView(R.layout.content_shell_activity);
mShellManager = (ShellManager) findViewById(R.id.shell_container);
- final boolean listenToActivityState = true;
- mWindowAndroid = new ActivityWindowAndroid(this, listenToActivityState);
+ mWindowAndroid = new ActivityWindowAndroid(this);
mWindowAndroid.restoreInstanceState(savedInstanceState);
mShellManager.setWindow(mWindowAndroid);
// Set up the animation placeholder to be the SurfaceView. This disables the
@@ -184,6 +183,14 @@ public class ContentShellActivity extends Activity {
}
@Override
+ protected void onStop() {
+ super.onStop();
+
+ ContentViewCore contentViewCore = getActiveContentViewCore();
+ if (contentViewCore != null) contentViewCore.onHide();
+ }
+
+ @Override
protected void onStart() {
super.onStart();

Powered by Google App Engine