commit | 9944c2f85c9ec3fd634d8337afa54a065df51825 | [log] [tgz] |
---|---|---|
author | Alexandra Gherghina <alexgherghina@google.com> | Tue Apr 15 10:40:33 2014 +0100 |
committer | Alexandra Gherghina <alexgherghina@google.com> | Tue Apr 15 10:59:18 2014 +0100 |
tree | bcdf637c4e725f1b7cb8b50f527190de39de42b2 | |
parent | 5b7edc5957a3c459169f56f99275cc8f997893f7 [diff] |
Sends ACTION_MANAGED_PROFILE_ADDED intent at foreground priority to speedup the new profile ui. Bug: 14073989 Change-Id: I06b57a4cb1b9975f28a5e1e676c76c9e6c5befe7
diff --git a/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java b/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java index 35f9314..5a458a3 100644 --- a/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java +++ b/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
@@ -2905,7 +2905,8 @@ 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);