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

Commit 584df59a authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Revert "On device lockdown, always show the keyguard"" into sc-v2-dev

parents 372e2a48 996896e6
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -677,13 +677,6 @@ public class KeyguardViewMediator extends SystemUI implements Dumpable,
                }
            }
        }

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

    ViewMediatorCallback mViewMediatorCallback = new ViewMediatorCallback() {
@@ -1542,8 +1535,7 @@ public class KeyguardViewMediator extends SystemUI implements Dumpable,
        }

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

            mNeedToReshowWhenReenabled = true;