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

Commit 9944c2f8 authored by Alexandra Gherghina's avatar Alexandra Gherghina
Browse files

Sends ACTION_MANAGED_PROFILE_ADDED intent at foreground priority to speedup the new profile ui.

Bug: 14073989
Change-Id: I06b57a4cb1b9975f28a5e1e676c76c9e6c5befe7
parent 5b7edc59
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2905,7 +2905,8 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
            try {
                Intent intent = new Intent(Intent.ACTION_MANAGED_PROFILE_ADDED);
                intent.putExtra(Intent.EXTRA_USER, new UserHandle(UserHandle.getCallingUserId()));
                intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);
                intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY |
                        Intent.FLAG_RECEIVER_FOREGROUND);
                mContext.sendBroadcastAsUser(intent, UserHandle.OWNER);
            } finally {
                restoreCallingIdentity(id);