From df72b14fae157d56ec549877b71a250ccca3f08e Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Sun, 27 Sep 2009 13:21:20 -0700 Subject: [PATCH] Fix issue #2148939: Sholes slow to wake up in landscape mode This was introduced when I did the fading of the lock screen, which relies on setting the policy visibility of the windows behind it to be hidden. As a result, when the orientation changed or the activity was restarted, they wouldn't be resized or reported as drawn, and the activity manager would wait until its timeout before unfreezing the screen. We now have a new method on WindowState to find out if a window has drawn itself, which is used in the appropriate places. Change-Id: If05f8b1947d3029917f62ad0f89b43544bd0a4dc --- .../android/server/WindowManagerService.java | 31 ++++++++++++------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/services/java/com/android/server/WindowManagerService.java b/services/java/com/android/server/WindowManagerService.java index 8ebbc93d23170..228d25e15281b 100644 --- a/services/java/com/android/server/WindowManagerService.java +++ b/services/java/com/android/server/WindowManagerService.java @@ -4174,7 +4174,7 @@ public class WindowManagerService extends IWindowManager.Stub final int N = mWindows.size(); for (int i=0; i