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.
This commit is contained in:
Joe Onorato
2009-11-19 12:24:48 -08:00
parent a5c32d6ecc
commit 0c4513e559
+3 -1
View File
@@ -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() {