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

Commit 27e025b6 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Allow activities to show on user 0 until provisioned

In a split-user mode, allow SUW and related apps to show UI
until the device is provisioned. Basically this changes the
logic a bit for when to force keyguard to always show on user 0.

Bug: 25326078
Change-Id: I8e862adae1c38efe9874479b532baa7446070035
parent a76bafdc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1054,7 +1054,8 @@ public class KeyguardViewMediator extends SystemUI {

        // In split system user mode, we never unlock system user.
        if (!UserManager.isSplitSystemUser()
                || KeyguardUpdateMonitor.getCurrentUser() != UserHandle.USER_SYSTEM) {
                || KeyguardUpdateMonitor.getCurrentUser() != UserHandle.USER_SYSTEM
                || !mUpdateMonitor.isDeviceProvisioned()) {

            // if the setup wizard hasn't run yet, don't show
            final boolean requireSim = !SystemProperties.getBoolean("keyguard.no_require_sim", false);