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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user