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