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

Commit c825b9b6 authored by Roman Birg's avatar Roman Birg
Browse files

SystemUI: improve switching users



Change-Id: Ia308260e043e7d8ad638c57bf0ae7b0ef2138e78
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent 7f1e4f71
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -3915,21 +3915,24 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
    public void userSwitched(int newUserId) {
        super.userSwitched(newUserId);
        if (MULTIUSER_DEBUG) mNotificationPanelDebugText.setText("USER " + newUserId);

        WallpaperManager wm = (WallpaperManager)
                mContext.getSystemService(Context.WALLPAPER_SERVICE);
        wm.forgetLoadedKeyguardWallpaper();
        mKeyguardWallpaper = null;

        animateCollapsePanels();
        updatePublicMode();
        updateNotifications(true);
        resetUserSetupObserver();
        setControllerUsers();

        WallpaperManager wm = (WallpaperManager)
                mContext.getSystemService(Context.WALLPAPER_SERVICE);
        wm.forgetLoadedKeyguardWallpaper();
        mKeyguardWallpaper = wm.getKeyguardBitmap();
        updateMediaMetaData(true);

        if (mNavigationBarView != null) {
            mNavigationBarView.updateSettings();
        }

        mKeyguardWallpaper = wm.getKeyguardBitmap();
        updateMediaMetaData(true);
    }

    private void setControllerUsers() {