am 7102fb5f: am e1df482c: am e3de6c5d: Merge "Fix crashes when removing work profile" into mnc-dev

* commit '7102fb5f5282b2a0c68691a434c407539e334ada':
  Fix crashes when removing work profile
This commit is contained in:
Amith Yamasani
2015-08-19 20:34:23 +00:00
committed by Android Git Automerger

View File

@@ -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;
}
}