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

Commit cb150cd8 authored by Makoto Onuki's avatar Makoto Onuki Committed by Android (Google) Code Review
Browse files

Merge "Fix the "User not running: 0" issue"

parents d82e0d94 299878c9
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -4705,10 +4705,9 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
                }
            }
            return;
        } else {
            // STOPSHIP check the caller UID with userId
        }
        if (mUserManager.isUserRunning(new UserHandle(userId))) {
        // STOPSHIP check the caller UID with userId
        if (!mUserManager.isUserRunning(new UserHandle(userId))) {
            throw new IllegalStateException("User not running: " + userId);
        }