diff options
author | Joe Onorato <joeo@android.com> | 2009-11-19 12:24:48 -0800 |
---|---|---|
committer | Joe Onorato <joeo@android.com> | 2009-11-19 12:24:48 -0800 |
commit | 0c4513e55904b022a161456d699d6c1f414f0936 (patch) | |
tree | 0ea960a1c8aa78526d6f13f8da767c76ba3527a1 /src | |
parent | a5c32d6ecc9da6d47cf59554bebf5d0dbe4f99d2 (diff) | |
download | android_packages_apps_Trebuchet-0c4513e55904b022a161456d699d6c1f414f0936.tar.gz android_packages_apps_Trebuchet-0c4513e55904b022a161456d699d6c1f414f0936.tar.bz2 android_packages_apps_Trebuchet-0c4513e55904b022a161456d699d6c1f414f0936.zip |
This might fix bug 2262272 - Apps list empty
I'm not sure how .added is empty, but the only way I see for this
to happen is if it is, so use .data instead, which ought to be the
same.
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher2/LauncherModel.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java index 85d47a916..6b4d3f4a4 100644 --- a/src/com/android/launcher2/LauncherModel.java +++ b/src/com/android/launcher2/LauncherModel.java @@ -980,7 +980,9 @@ public class LauncherModel extends BroadcastReceiver { private void bindAllApps() { synchronized (mLock) { - final ArrayList<ApplicationInfo> results = mAllAppsList.added; + final ArrayList<ApplicationInfo> results + = (ArrayList<ApplicationInfo>)mAllAppsList.data.clone(); + // We're adding this now, so clear out this so we don't re-send them. mAllAppsList.added = new ArrayList<ApplicationInfo>(); mHandler.post(new Runnable() { public void run() { |