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

Commit 338c6ed5 authored by Christine Franks's avatar Christine Franks
Browse files

Don't lock down system user in demo mode

Bug: 62712426
Test: manual - user 0 no longer locked down in demo mode
Change-Id: I3618775a48b541a42a316e27be297a012a7227b2
parent 27eb322e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -659,7 +659,7 @@ public class KeyguardViewMediator extends SystemUI {
    }
    }


    boolean mustNotUnlockCurrentUser() {
    boolean mustNotUnlockCurrentUser() {
        return (UserManager.isSplitSystemUser() || UserManager.isDeviceInDemoMode(mContext))
        return UserManager.isSplitSystemUser()
                && KeyguardUpdateMonitor.getCurrentUser() == UserHandle.USER_SYSTEM;
                && KeyguardUpdateMonitor.getCurrentUser() == UserHandle.USER_SYSTEM;
    }
    }