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

Commit 312801d2 authored by Roman Birg's avatar Roman Birg
Browse files

Keyguard: fix fingerprint not starting after user switch



Ref: CYNGNOS-1251

Change-Id: I588d01db51fd8db6fc0b0e5b389f2f63dfe7a715
Signed-off-by: default avatarRoman Birg <roman@cyngn.com>
parent f8712342
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -376,6 +376,8 @@ public class KeyguardViewMediator extends SystemUI {

        @Override
        public void onUserSwitching(int userId) {
            mHandler.obtainMessage(KEYGUARD_FINGERPRINT_AUTH, 0, 0).sendToTarget();

            // Note that the mLockPatternUtils user has already been updated from setCurrentUser.
            // We need to force a reset of the views, since lockNow (called by
            // ActivityManagerService) will not reconstruct the keyguard if it is already showing.
@@ -393,6 +395,7 @@ public class KeyguardViewMediator extends SystemUI {
        @Override
        public void onUserSwitchComplete(int userId) {
            mSwitchingUser = false;
            mHandler.obtainMessage(KEYGUARD_FINGERPRINT_AUTH, 1, 0).sendToTarget();
            if (userId != UserHandle.USER_OWNER) {
                UserInfo info = UserManager.get(mContext).getUserInfo(userId);
                if (info != null && info.isGuest()) {