From 5c7bd017058ff073b73e96726aa44c4a113f453f Mon Sep 17 00:00:00 2001 From: Craig Mautner Date: Wed, 13 Nov 2013 13:09:35 -0800 Subject: Keyguard isn't visible if it hasn't been drawn. Reduces jank in multiuser lock from QuickSettings. The launcher and wallpaper were being hidden as soon as the surface for the keyguard was created. Now they are not hidden until the keyguard has been drawn. This still leaves a short time where there is a black screen but it is considerably shorter than it was. Comparable to jb now. Fixes bug 11046339. Change-Id: I349d95dba72da27e5c05a7a64c95a2774d17a34e --- services/java/com/android/server/wm/WindowAnimator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/java') diff --git a/services/java/com/android/server/wm/WindowAnimator.java b/services/java/com/android/server/wm/WindowAnimator.java index cd46bb8..91f15f3 100644 --- a/services/java/com/android/server/wm/WindowAnimator.java +++ b/services/java/com/android/server/wm/WindowAnimator.java @@ -245,7 +245,7 @@ public class WindowAnimator { mForceHiding = KEYGUARD_ANIMATING_OUT; } } else { - mForceHiding = KEYGUARD_SHOWN; + mForceHiding = win.isDrawnLw() ? KEYGUARD_SHOWN : KEYGUARD_NOT_SHOWN; } } if (WindowManagerService.DEBUG_VISIBILITY) Slog.v(TAG, -- cgit v1.1