mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Launcher2 - This might fix the missing app problem and the crash in removeApp.
This marks the apps list as dirty by default. Usually, because of how long it takes the loader thread to run, the apps list comes in after the surface has been initialized. However, if the surface isn't around yet when setApps is called, then setApps won't set mRollo.mAppsDirty because mRollo is null. The extra null check is necessary for the normal case when mAllAppsList isn't ready yet when the surface comes in.
This commit is contained in:
@@ -804,7 +804,7 @@ public class AllAppsView extends RSSurfaceView
|
||||
private Canvas mSelectionCanvas;
|
||||
|
||||
boolean mHasSurface = false;
|
||||
private boolean mAppsDirty = false;
|
||||
private boolean mAppsDirty = true;
|
||||
|
||||
Params mParams;
|
||||
State mState;
|
||||
@@ -1051,7 +1051,7 @@ public class AllAppsView extends RSSurfaceView
|
||||
|
||||
void dirtyCheck() {
|
||||
if (mHasSurface) {
|
||||
if (mAppsDirty) {
|
||||
if (mAppsDirty && mAllAppsList != null) {
|
||||
for (int i=0; i < mState.iconCount; i++) {
|
||||
uploadAppIcon(i, mAllAppsList.get(i));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user