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

Commit 299878c9 authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Fix the "User not running: 0" issue

Bug 23994401

Change-Id: I580730e7c895f00adf278a2d6709284fff0fc28b
parent 3adba786
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);
        }