diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-09-20 11:20:31 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2011-09-20 11:20:31 -0700 |
commit | bc1aa7bbc753ebcd32da4507fa23215489b6d314 (patch) | |
tree | 30bd8e78d30370a7c4997543c9925699f52c4675 /services/java/com/android/server/wm/AppWindowToken.java | |
parent | 2ee1ffb144800802c566bebe062f324297a791ba (diff) | |
download | frameworks_base-bc1aa7bbc753ebcd32da4507fa23215489b6d314.zip frameworks_base-bc1aa7bbc753ebcd32da4507fa23215489b6d314.tar.gz frameworks_base-bc1aa7bbc753ebcd32da4507fa23215489b6d314.tar.bz2 |
Fix issue #5312624: Lock screen very flickery
The key thing was to fix isVisibleOrBehindKeyguardLw() so that it
wouldn't count a window as not visible if it was just currently
in the process of drawing due to an orientation change.
Also improve logic in deciding when to turn screen on to better ensure
the screen is in a stable state, in particular treating screen off
as a frozen screen and not allowing it to turn on until the
update of the screen due to any config change is done.
Change-Id: If82199f3773270b2d07f9c7de9da2dad8c7b28d7
Diffstat (limited to 'services/java/com/android/server/wm/AppWindowToken.java')
-rw-r--r-- | services/java/com/android/server/wm/AppWindowToken.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/java/com/android/server/wm/AppWindowToken.java b/services/java/com/android/server/wm/AppWindowToken.java index bfa2b39..61c96bb 100644 --- a/services/java/com/android/server/wm/AppWindowToken.java +++ b/services/java/com/android/server/wm/AppWindowToken.java @@ -194,7 +194,7 @@ class AppWindowToken extends WindowToken { // This must be called while inside a transaction. boolean stepAnimationLocked(long currentTime, int dw, int dh) { - if (!service.mDisplayFrozen && service.mPolicy.isScreenOn()) { + if (!service.mDisplayFrozen && service.mPolicy.isScreenOnFully()) { // We will run animations as long as the display isn't frozen. if (animation == WindowManagerService.sDummyAnimation) { |