Merge "Fix profile removed broadcast being sent for non-profile user"
This commit is contained in:
committed by
Android (Google) Code Review
commit
c6d5bd40d9
@@ -5248,7 +5248,8 @@ public class UserManagerService extends IUserManager.Stub {
|
||||
Slog.w(LOG_TAG, "Unable to notify AppOpsService of removing user.", e);
|
||||
}
|
||||
|
||||
if (userData.info.profileGroupId != UserInfo.NO_PROFILE_GROUP_ID) {
|
||||
if (userData.info.profileGroupId != UserInfo.NO_PROFILE_GROUP_ID
|
||||
&& userData.info.isProfile()) {
|
||||
sendProfileRemovedBroadcast(userData.info.profileGroupId, userData.info.id,
|
||||
userData.info.userType);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user