diff options
| author | Dianne Hackborn <hackbod@google.com> | 2009-12-21 16:46:34 -0800 |
|---|---|---|
| committer | Dianne Hackborn <hackbod@google.com> | 2009-12-21 16:57:11 -0800 |
| commit | 6cf67faf3b77c3a442d41b46081ca1fdf2ca853c (patch) | |
| tree | c1b11a0da38fb2d7f7d83f1ed387fc16c9e9bd49 | |
| parent | 33b13e34e3cd3920ea33d4060cb7d3adc35196a9 (diff) | |
| download | frameworks_base-6cf67faf3b77c3a442d41b46081ca1fdf2ca853c.zip frameworks_base-6cf67faf3b77c3a442d41b46081ca1fdf2ca853c.tar.gz frameworks_base-6cf67faf3b77c3a442d41b46081ca1fdf2ca853c.tar.bz2 | |
Fix issue #2329765: Activities are not being immediately stopped.
This was caused by the launchers new hidden surface on top. The
algorithm for determining whether an activity was visible assumed
that all windows would want to be visible. Now it ignores ones that
have explicitly requested to be hidden.
| -rw-r--r-- | services/java/com/android/server/WindowManagerService.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/java/com/android/server/WindowManagerService.java b/services/java/com/android/server/WindowManagerService.java index cdb8686..9270a82 100644 --- a/services/java/com/android/server/WindowManagerService.java +++ b/services/java/com/android/server/WindowManagerService.java @@ -8511,7 +8511,8 @@ public class WindowManagerService extends IWindowManager.Stub final int N = allAppWindows.size(); for (int i=0; i<N; i++) { WindowState win = allAppWindows.get(i); - if (win == startingWindow || win.mAppFreezing) { + if (win == startingWindow || win.mAppFreezing + || win.mViewVisibility != View.VISIBLE) { continue; } if (DEBUG_VISIBILITY) { |
