Merge "Reload everything when coming back from the SD being unmounted." into gingerbread

This commit is contained in:
Joe Onorato
2010-09-30 16:39:50 -07:00
committed by Android (Google) Code Review
+3 -2
View File
@@ -340,8 +340,9 @@ public class LauncherModel extends BroadcastReceiver {
}
} else if (Intent.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE.equals(action)) {
String[] packages = intent.getStringArrayExtra(Intent.EXTRA_CHANGED_PACKAGE_LIST);
enqueuePackageUpdated(new PackageUpdatedTask(PackageUpdatedTask.OP_ADD, packages));
// When everything comes back, just reload everything. We might not
// have the right icons for apps on external storage.
startLoader(mApp, false);
} else if (Intent.ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE.equals(action)) {
String[] packages = intent.getStringArrayExtra(Intent.EXTRA_CHANGED_PACKAGE_LIST);