Merge "Fix crashes when removing work profile" into mnc-dev

This commit is contained in:
Amith Yamasani
2015-08-19 20:10:30 +00:00
committed by Android (Google) Code Review

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