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

Commit 23a682bb authored by Christine Franks's avatar Christine Franks Committed by android-build-merger
Browse files

Merge "Remove prohibition on switching to user 0 in demo" into pi-dev

am: 445a6c6b

Change-Id: I73030ad87ed737cc3bf4f6fb5bb6306f1b0bc1ff
parents a64b4840 445a6c6b
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -1184,11 +1184,6 @@ class UserController implements Handler.Callback {
            Slog.w(TAG, "No user info for user #" + targetUserId);
            return false;
        }
        if (!targetUserInfo.isDemo() && UserManager.isDeviceInDemoMode(mInjector.getContext())) {
            Slog.w(TAG, "Cannot switch to non-demo user #" + targetUserId
                    + " when device is in demo mode");
            return false;
        }
        if (!targetUserInfo.supportsSwitchTo()) {
            Slog.w(TAG, "Cannot switch to User #" + targetUserId + ": not supported");
            return false;