Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff94d116 authored by Cynthia Wasonga's avatar Cynthia Wasonga
Browse files

Fix profile removed broadcast being sent for non-profile user

Bug: 249499651
Test: manual test via adb shell
Change-Id: I5208694773901d303a4719d54230202de40c1e60
parent 0f564cb8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
            }