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

Commit 1dcb9f69 authored by Raj Yengisetty's avatar Raj Yengisetty Committed by Steve Kondik
Browse files

KeyguardViewMediator: remove multi-user checks that are handled in LockPatternUtils

Change-Id: Ib012c0d5090115e04d01675eafa03117c360bebf
parent 8e466465
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -698,8 +698,7 @@ public class KeyguardViewMediator extends SystemUI {
    }

    private void maybeSendUserPresentBroadcast() {
        if (mSystemReady && isKeyguardDisabled()
                && !mUserManager.isUserSwitcherEnabled()) {
        if (mSystemReady && isKeyguardDisabled()) {
            // Lock screen is disabled because the user has set the preference to "None".
            // In this case, send out ACTION_USER_PRESENT here instead of in
            // handleKeyguardDone()
@@ -712,7 +711,7 @@ public class KeyguardViewMediator extends SystemUI {
            if (DEBUG) Log.d(TAG, "isKeyguardDisabled: keyguard is disabled externally");
            return true;
        }
        if (mLockPatternUtils.isLockScreenDisabled() && mUserManager.getUsers(true).size() == 1) {
        if (mLockPatternUtils.isLockScreenDisabled()) {
            if (DEBUG) Log.d(TAG, "isKeyguardDisabled: keyguard is disabled by setting");
            return true;
        }