Merge "When the SD card comes back, we need to show the apps on it." into gingerbread

This commit is contained in:
Joe Onorato
2010-10-07 11:42:22 -07:00
committed by Android (Google) Code Review

View File

@@ -340,8 +340,10 @@ public class LauncherModel extends BroadcastReceiver {
}
} else if (Intent.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE.equals(action)) {
// When everything comes back, just reload everything. We might not
// have the right icons for apps on external storage.
// First, schedule to add these apps back in.
String[] packages = intent.getStringArrayExtra(Intent.EXTRA_CHANGED_PACKAGE_LIST);
enqueuePackageUpdated(new PackageUpdatedTask(PackageUpdatedTask.OP_ADD, packages));
// Then, rebind everything.
startLoader(mApp, false);
} else if (Intent.ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE.equals(action)) {