summaryrefslogtreecommitdiffstats
path: root/services/appwidget
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2014-05-02 16:28:33 -0700
committerDianne Hackborn <hackbod@google.com>2014-05-02 16:29:10 -0700
commitd83a096f299abd9c7fe5e441ef1bb169c314b575 (patch)
tree2c3e1c45bc81fb6660fd306d71e72a1cc5775772 /services/appwidget
parent5d84bce12204072bc7ab296ce0cdea7efb5cf17c (diff)
downloadframeworks_base-d83a096f299abd9c7fe5e441ef1bb169c314b575.zip
frameworks_base-d83a096f299abd9c7fe5e441ef1bb169c314b575.tar.gz
frameworks_base-d83a096f299abd9c7fe5e441ef1bb169c314b575.tar.bz2
Bump up priority of system receiving BOOT_COMPLETED.
Change-Id: I5166f88f11f781914312e867cb653c8ecbefa705
Diffstat (limited to 'services/appwidget')
-rw-r--r--services/appwidget/java/com/android/server/appwidget/AppWidgetService.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/services/appwidget/java/com/android/server/appwidget/AppWidgetService.java b/services/appwidget/java/com/android/server/appwidget/AppWidgetService.java
index 77d5076..2fa23c9 100644
--- a/services/appwidget/java/com/android/server/appwidget/AppWidgetService.java
+++ b/services/appwidget/java/com/android/server/appwidget/AppWidgetService.java
@@ -125,8 +125,10 @@ public class AppWidgetService extends SystemService implements WidgetBackupProvi
// Register for the boot completed broadcast, so we can send the
// ENABLE broacasts. If we try to send them now, they time out,
// because the system isn't ready to handle them yet.
+ IntentFilter filter = new IntentFilter(Intent.ACTION_BOOT_COMPLETED);
+ filter.setPriority(IntentFilter.SYSTEM_HIGH_PRIORITY);
mContext.registerReceiverAsUser(mBroadcastReceiver, UserHandle.ALL,
- new IntentFilter(Intent.ACTION_BOOT_COMPLETED), null, null);
+ filter, null, null);
// Register for configuration changes so we can update the names
// of the widgets when the locale changes.
@@ -135,7 +137,6 @@ public class AppWidgetService extends SystemService implements WidgetBackupProvi
// Register for broadcasts about package install, etc., so we can
// update the provider list.
- IntentFilter filter = new IntentFilter();
filter.addAction(Intent.ACTION_PACKAGE_ADDED);
filter.addAction(Intent.ACTION_PACKAGE_CHANGED);
filter.addAction(Intent.ACTION_PACKAGE_REMOVED);