diff options
author | Dianne Hackborn <hackbod@google.com> | 2014-05-02 16:28:33 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2014-05-02 16:29:10 -0700 |
commit | d83a096f299abd9c7fe5e441ef1bb169c314b575 (patch) | |
tree | 2c3e1c45bc81fb6660fd306d71e72a1cc5775772 /services/core/java/com/android/server/search/SearchManagerService.java | |
parent | 5d84bce12204072bc7ab296ce0cdea7efb5cf17c (diff) | |
download | frameworks_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/core/java/com/android/server/search/SearchManagerService.java')
-rw-r--r-- | services/core/java/com/android/server/search/SearchManagerService.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/search/SearchManagerService.java b/services/core/java/com/android/server/search/SearchManagerService.java index 486477a..5deb2b8 100644 --- a/services/core/java/com/android/server/search/SearchManagerService.java +++ b/services/core/java/com/android/server/search/SearchManagerService.java @@ -70,8 +70,9 @@ public class SearchManagerService extends ISearchManager.Stub { */ public SearchManagerService(Context context) { mContext = context; - mContext.registerReceiver(new BootCompletedReceiver(), - new IntentFilter(Intent.ACTION_BOOT_COMPLETED)); + IntentFilter filter = new IntentFilter(Intent.ACTION_BOOT_COMPLETED); + filter.setPriority(IntentFilter.SYSTEM_HIGH_PRIORITY); + mContext.registerReceiver(new BootCompletedReceiver(), filter); mContext.registerReceiver(new UserReceiver(), new IntentFilter(Intent.ACTION_USER_REMOVED)); new MyPackageMonitor().register(context, null, UserHandle.ALL, true); |