summaryrefslogtreecommitdiffstats
path: root/services/devicepolicy
diff options
context:
space:
mode:
authorAlexandra Gherghina <alexgherghina@google.com>2014-04-15 10:40:33 +0100
committerAlexandra Gherghina <alexgherghina@google.com>2014-04-15 10:59:18 +0100
commit9944c2f85c9ec3fd634d8337afa54a065df51825 (patch)
treebcdf637c4e725f1b7cb8b50f527190de39de42b2 /services/devicepolicy
parent5b7edc5957a3c459169f56f99275cc8f997893f7 (diff)
downloadframeworks_base-9944c2f85c9ec3fd634d8337afa54a065df51825.zip
frameworks_base-9944c2f85c9ec3fd634d8337afa54a065df51825.tar.gz
frameworks_base-9944c2f85c9ec3fd634d8337afa54a065df51825.tar.bz2
Sends ACTION_MANAGED_PROFILE_ADDED intent at foreground priority to speedup the new profile ui.
Bug: 14073989 Change-Id: I06b57a4cb1b9975f28a5e1e676c76c9e6c5befe7
Diffstat (limited to 'services/devicepolicy')
-rw-r--r--services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java3
1 files changed, 2 insertions, 1 deletions
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 @@ 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);