Fix profile removed broadcast being sent for non-profile user
Bug: 249499651 Test: manual test via adb shell Change-Id: I5208694773901d303a4719d54230202de40c1e60
This commit is contained in:
@@ -5289,7 +5289,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