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

Commit ba053bb5 authored by Vadim Tryshev's avatar Vadim Tryshev Committed by android-build-merger
Browse files

Merge "Don\'t show UNLOCK button when there are no users." into nyc-dev

am: e2f0f735

* commit 'e2f0f735':
  Don't show UNLOCK button when there are no users.
parents 03d2fb32 e2f0f735
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -79,6 +79,11 @@ public class KeyguardBouncer {
    }

    public void show(boolean resetSecuritySelection) {
        final int keyguardUserId = KeyguardUpdateMonitor.getCurrentUser();
        if (keyguardUserId == UserHandle.USER_SYSTEM && UserManager.isSplitSystemUser()) {
            // In split system user mode, we never unlock system user.
            return;
        }
        mFalsingManager.onBouncerShown();
        ensureView();
        if (resetSecuritySelection) {
@@ -91,7 +96,6 @@ public class KeyguardBouncer {
        }

        final int activeUserId = ActivityManager.getCurrentUser();
        final int keyguardUserId = KeyguardUpdateMonitor.getCurrentUser();
        final boolean allowDismissKeyguard =
                !(UserManager.isSplitSystemUser() && activeUserId == UserHandle.USER_SYSTEM)
                && activeUserId == keyguardUserId;