OSDN Git Service

Fix issue #2148939: Sholes slow to wake up in landscape mode
authorDianne Hackborn <hackbod@google.com>
Sun, 27 Sep 2009 20:21:20 +0000 (13:21 -0700)
committerDianne Hackborn <hackbod@google.com>
Sun, 27 Sep 2009 20:21:20 +0000 (13:21 -0700)
commit7433e8aebd86e5916839508da478f9b9d63b969e
tree933be54ba0eff3cdf5828f75b003972b7243d1af
parent141e4f1d69186104c3e169ee7365b62bc425859a
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
services/java/com/android/server/WindowManagerService.java