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.
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java
index 85d47a9..6b4d3f4 100644
--- a/src/com/android/launcher2/LauncherModel.java
+++ b/src/com/android/launcher2/LauncherModel.java
@@ -980,7 +980,9 @@
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() {