am 1d8e7bbe: Fix the bug where the icons stop showing up.
Merge commit '1d8e7bbe09e130af5e9534cc26a65f623be7a424' into eclair-mr2
* commit '1d8e7bbe09e130af5e9534cc26a65f623be7a424':
Fix the bug where the icons stop showing up.
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index 1b9ee1d..bddc9ac 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -227,6 +227,11 @@
android.os.Debug.stopMethodTracing();
}
+ // We have a new AllAppsView, we need to re-bind everything, and it could have
+ // changed in our absence.
+ mModel.setAllAppsDirty();
+ mModel.setWorkspaceDirty();
+
if (!mRestoring) {
mModel.startLoader(this, true);
}
diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java
index 34cb4fa..12dd016 100644
--- a/src/com/android/launcher2/LauncherModel.java
+++ b/src/com/android/launcher2/LauncherModel.java
@@ -249,6 +249,13 @@
mLoader.stopLoader();
}
+ /**
+ * We pick up most of the changes to all apps.
+ */
+ public void setAllAppsDirty() {
+ mLoader.setAllAppsDirty();
+ }
+
public void setWorkspaceDirty() {
mLoader.setWorkspaceDirty();
}