mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
am 3ecbd81f: Still trying to fix 2320348 - Launcher2 crashed: AIOOBE at com.android.launcher2.AllAppsView.removeApp
Merge commit '3ecbd81f99d2005172f431d2bf207b698154fe29' into eclair-mr2 * commit '3ecbd81f99d2005172f431d2bf207b698154fe29': Still trying to fix 2320348 - Launcher2 crashed: AIOOBE at com.android.launcher2.AllAppsView$RolloRS.removeApp
This commit is contained in:
@@ -658,11 +658,7 @@ public class AllAppsView extends RSSurfaceView
|
||||
public void setApps(ArrayList<ApplicationInfo> list) {
|
||||
mAllAppsList = list;
|
||||
if (mRollo != null) {
|
||||
if (mRollo.mHasSurface) {
|
||||
mRollo.setApps(list);
|
||||
} else {
|
||||
mRollo.mAppsDirty = true;
|
||||
}
|
||||
mRollo.setApps(list);
|
||||
}
|
||||
mLocks &= ~LOCK_ICONS_PENDING;
|
||||
}
|
||||
@@ -1084,7 +1080,13 @@ public class AllAppsView extends RSSurfaceView
|
||||
mState.iconCount = count;
|
||||
for (int i=0; i < mState.iconCount; i++) {
|
||||
createAppIconAllocations(i, list.get(i));
|
||||
uploadAppIcon(i, list.get(i));
|
||||
}
|
||||
if (mHasSurface) {
|
||||
for (int i=0; i < mState.iconCount; i++) {
|
||||
uploadAppIcon(i, list.get(i));
|
||||
}
|
||||
} else {
|
||||
mRollo.mAppsDirty = true;
|
||||
}
|
||||
saveAppsList();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user