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

Commit 88d2f6c6 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "On device lockdown, always show the keyguard" into sc-v2-dev am: d978682f am: 63222922

parents 449efaa9 63222922
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -702,6 +702,13 @@ public class KeyguardViewMediator extends CoreStartable implements Dumpable,
                }
            }
        }

        @Override
        public void onStrongAuthStateChanged(int userId) {
            if (mLockPatternUtils.isUserInLockdown(KeyguardUpdateMonitor.getCurrentUser())) {
                doKeyguardLocked(null);
            }
        }
    };

    ViewMediatorCallback mViewMediatorCallback = new ViewMediatorCallback() {
@@ -1777,7 +1784,8 @@ public class KeyguardViewMediator extends CoreStartable implements Dumpable,
        }

        // if another app is disabling us, don't show
        if (!mExternallyEnabled) {
        if (!mExternallyEnabled
            && !mLockPatternUtils.isUserInLockdown(KeyguardUpdateMonitor.getCurrentUser())) {
            if (DEBUG) Log.d(TAG, "doKeyguard: not showing because externally disabled");

            mNeedToReshowWhenReenabled = true;