Fix the bug where the icons stop showing up.

I think what's happening here is that when there is a configuration
change, we were restarting the launcher process because the driver
would hang.  But now that that's fixed, we need to poke the model
to reload the icons.  We were missing the bind apps call.
This commit is contained in:
Joe Onorato
2009-10-15 19:49:43 -07:00
parent 742d7fc1c2
commit 1d8e7bbe09
2 changed files with 12 additions and 0 deletions
+5
View File
@@ -227,6 +227,11 @@ public final class Launcher extends Activity
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);
}
@@ -249,6 +249,13 @@ public class LauncherModel {
mLoader.stopLoader();
}
/**
* We pick up most of the changes to all apps.
*/
public void setAllAppsDirty() {
mLoader.setAllAppsDirty();
}
public void setWorkspaceDirty() {
mLoader.setWorkspaceDirty();
}