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

Commit 35ad81e2 authored by Christine Franks's avatar Christine Franks
Browse files

Remove prohibition on switching to user 0 in demo

Bug: 70985064
Test: make -j100

Change-Id: Ie3dc310721ae8175011b4b2a1e9ce263716df5f3
parent 8aab7c65
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;