summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/LauncherApplication.java
diff options
context:
space:
mode:
authorJoe Onorato <joeo@android.com>2010-03-05 15:05:52 -0500
committerJoe Onorato <joeo@android.com>2010-03-10 13:42:32 -0800
commit64e6be78dc72e1a89fe8fb95c502586f9260df28 (patch)
tree3836e1dfd9891a5fc0b900b99f5158b7fa729c85 /src/com/android/launcher2/LauncherApplication.java
parentc36f2455aba21448a130b9a5e2a118a379745c37 (diff)
downloadandroid_packages_apps_Trebuchet-64e6be78dc72e1a89fe8fb95c502586f9260df28.tar.gz
android_packages_apps_Trebuchet-64e6be78dc72e1a89fe8fb95c502586f9260df28.tar.bz2
android_packages_apps_Trebuchet-64e6be78dc72e1a89fe8fb95c502586f9260df28.zip
Refactor the app updates so that it doesn't rely on the package name.
This will be needed for the upcoming change to update the icons with the grayed out when the SD card goes away.
Diffstat (limited to 'src/com/android/launcher2/LauncherApplication.java')
-rw-r--r--src/com/android/launcher2/LauncherApplication.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/launcher2/LauncherApplication.java b/src/com/android/launcher2/LauncherApplication.java
index 183dbf571..be448a891 100644
--- a/src/com/android/launcher2/LauncherApplication.java
+++ b/src/com/android/launcher2/LauncherApplication.java
@@ -43,6 +43,10 @@ public class LauncherApplication extends Application {
filter.addAction(Intent.ACTION_PACKAGE_CHANGED);
filter.addDataScheme("package");
registerReceiver(mModel, filter);
+ filter = new IntentFilter();
+ filter.addAction(Intent.ACTION_EXTERNAL_APPLICATIONS_AVAILABLE);
+ filter.addAction(Intent.ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE);
+ registerReceiver(mModel, filter);
// Register for changes to the favorites
ContentResolver resolver = getContentResolver();