am 8cf34293: Launcher2 - This might fix the missing app problem and the crash in removeApp.
Merge commit '8cf34293dc2f078bf023ac77d007f5182f9b9357' into eclair-mr2
* commit '8cf34293dc2f078bf023ac77d007f5182f9b9357':
Launcher2 - This might fix the missing app problem and the crash in removeApp.
diff --git a/src/com/android/launcher2/AllAppsView.java b/src/com/android/launcher2/AllAppsView.java
index 88f074c..fa272b9 100644
--- a/src/com/android/launcher2/AllAppsView.java
+++ b/src/com/android/launcher2/AllAppsView.java
@@ -804,7 +804,7 @@
private Canvas mSelectionCanvas;
boolean mHasSurface = false;
- private boolean mAppsDirty = false;
+ private boolean mAppsDirty = true;
Params mParams;
State mState;
@@ -1051,7 +1051,7 @@
void dirtyCheck() {
if (mHasSurface) {
- if (mAppsDirty) {
+ if (mAppsDirty && mAllAppsList != null) {
for (int i=0; i < mState.iconCount; i++) {
uploadAppIcon(i, mAllAppsList.get(i));
}