mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Merge "When the SD card comes back, we need to show the apps on it." into gingerbread
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user