Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce479d83 authored by John Spurlock's avatar John Spurlock
Browse files

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
parent 652678af
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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();
                }
            }
        }
    };