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

Commit 57cd7d2a authored by Beverly Tai's avatar Beverly Tai Committed by Android Build Coastguard Worker
Browse files

Revert "On device lockdown, always show the keyguard"

This reverts commit 100ae423.

Reason for revert: b/300463732 regression
Bug: 300463732
Bug: 218495634
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:996896e672f28aa96a3d8158192de3cd4a105bc3)
Merged-In: Ida8f2ab5e4ac79b38c21ba7bacfe9c374c9cc600
Change-Id: Ida8f2ab5e4ac79b38c21ba7bacfe9c374c9cc600
parent 1cf1b7d4
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() {
@@ -1541,8 +1534,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;