From ce479d831ad402fa57d4212908b1a9e168fb4143 Mon Sep 17 00:00:00 2001 From: John Spurlock Date: Thu, 29 Nov 2012 09:52:21 -0500 Subject: [PATCH] Fix for navbar back/home appearing in keyguard (multiuser). Clear remembered sysui visibility flags in PhoneWindowManager when switching users. They might have been from another user. Then reapply current window's flags to ensure contribution makes it to the status bar. Bug:7506446 Change-Id: I8249ba006934bdc22b952da7c16e9983d091c489 --- .../android/internal/policy/impl/PhoneWindowManager.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java index d9c07f8a7220a..242fb97c09bc9 100755 --- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java @@ -3756,6 +3756,14 @@ public class PhoneWindowManager implements WindowManagerPolicy { // and then updates our own bookkeeping based on the now- // current user. mSettingsObserver.onChange(false); + + // force a re-application of focused window sysui visibility. + // the window may never have been shown for this user + // e.g. the keyguard when going through the new-user setup flow + synchronized(mLock) { + mLastSystemUiFlags = 0; + updateSystemUiVisibilityLw(); + } } } };