diff options
author | Mike LeBeau <mlebeau@android.com> | 2009-07-30 16:17:19 -0700 |
---|---|---|
committer | Mike LeBeau <mlebeau@android.com> | 2009-07-30 16:17:19 -0700 |
commit | a0316493881ad09b647a4198952f2880003b8d37 (patch) | |
tree | fc1b51828091145c529fc972e45743cc80bf6964 | |
parent | a32069fef54b73ead5e15d9ce5ee954db488ad50 (diff) | |
download | ApplicationsProvider-a0316493881ad09b647a4198952f2880003b8d37.tar.gz |
Update the list of applications asynchronously in onCreate just as we now
do when we receive a broadcast that there's been a change.
Fixes http://b/2023068
This was just an omission from https://android-git.corp.google.com/g/8033
to fix http://b/1917762.
-rw-r--r-- | src/com/android/providers/applications/ApplicationsProvider.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/providers/applications/ApplicationsProvider.java b/src/com/android/providers/applications/ApplicationsProvider.java index b4356f2..ee18a74 100644 --- a/src/com/android/providers/applications/ApplicationsProvider.java +++ b/src/com/android/providers/applications/ApplicationsProvider.java @@ -125,11 +125,11 @@ public class ApplicationsProvider extends ContentProvider implements ThreadFacto public boolean onCreate() { createDatabase(); registerBroadcastReceiver(); - updateApplicationsList(); mExecutor = new ThreadPoolExecutor(1, 1, 5, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>(), this); + postAppsUpdate(); return true; } |