am e3de6c5d: Merge "Fix crashes when removing work profile" into mnc-dev
* commit 'e3de6c5df5a94e627c5ee0f188cbb066233a3dd0': Fix crashes when removing work profile
This commit is contained in:
@@ -403,9 +403,10 @@ public class UserManagerService extends IUserManager.Stub {
|
|||||||
return ui;
|
return ui;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Called by PackageManagerService */
|
||||||
public boolean exists(int userId) {
|
public boolean exists(int userId) {
|
||||||
synchronized (mPackagesLock) {
|
synchronized (mPackagesLock) {
|
||||||
return ArrayUtils.contains(mUserIds, userId);
|
return mUsers.get(userId) != null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user