summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/LauncherApplication.java
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2011-06-28 13:46:59 +0100
committerNarayan Kamath <narayan@google.com>2011-07-18 11:43:34 +0100
commitcb1a4778686a46c46d8dc88b6c83674f6fac6592 (patch)
tree37ef3095d7c21d9820e935c436b223109fba2b6f /src/com/android/launcher2/LauncherApplication.java
parent234c4cd54406e363a2ebc213f6ae5be284414988 (diff)
downloadandroid_packages_apps_Trebuchet-cb1a4778686a46c46d8dc88b6c83674f6fac6592.tar.gz
android_packages_apps_Trebuchet-cb1a4778686a46c46d8dc88b6c83674f6fac6592.tar.bz2
android_packages_apps_Trebuchet-cb1a4778686a46c46d8dc88b6c83674f6fac6592.zip
Update the search widget icon if the global search provider changes.
Note that this change is necessary because the launcher might receive the PM broadcast before the SearchManagerService does. Change-Id: I5a03e2fb16dee232a83d24b834ef6bd0eaabe774
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 db3a4cbe4..94163acc6 100644
--- a/src/com/android/launcher2/LauncherApplication.java
+++ b/src/com/android/launcher2/LauncherApplication.java
@@ -17,6 +17,7 @@
package com.android.launcher2;
import android.app.Application;
+import android.app.SearchManager;
import android.content.ContentResolver;
import android.content.Intent;
import android.content.IntentFilter;
@@ -57,6 +58,9 @@ public class LauncherApplication extends Application {
filter.addAction(Intent.ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE);
filter.addAction(Intent.ACTION_LOCALE_CHANGED);
registerReceiver(mModel, filter);
+ filter = new IntentFilter();
+ filter.addAction(SearchManager.INTENT_GLOBAL_SEARCH_ACTIVITY_CHANGED);
+ registerReceiver(mModel, filter);
// Register for changes to the favorites
ContentResolver resolver = getContentResolver();