summaryrefslogtreecommitdiffstats
path: root/core/java/android/server
diff options
context:
space:
mode:
authorBjorn Bringert <bringert@android.com>2009-07-30 13:58:23 +0100
committerBjorn Bringert <bringert@android.com>2009-07-30 13:58:23 +0100
commit83dba19a8e9d5be6f18a4c9e2e254386c25c66fe (patch)
treeeffab7af5428703232d410038823cc92ed817dbc /core/java/android/server
parent73139aead7203c22f3a4abb5e9fd8abd5ef249b1 (diff)
downloadframeworks_base-83dba19a8e9d5be6f18a4c9e2e254386c25c66fe.zip
frameworks_base-83dba19a8e9d5be6f18a4c9e2e254386c25c66fe.tar.gz
frameworks_base-83dba19a8e9d5be6f18a4c9e2e254386c25c66fe.tar.bz2
Fix in-app search shortcut icons
When the suggstion provider is in a different package from the searchable activity, the icons stored for shortcuts used the package of the activity instead of the provider. Fixes http://b/issue?id=2023993
Diffstat (limited to 'core/java/android/server')
-rw-r--r--core/java/android/server/search/SearchableInfo.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/server/search/SearchableInfo.java b/core/java/android/server/search/SearchableInfo.java
index 045b0c2..69ef98c 100644
--- a/core/java/android/server/search/SearchableInfo.java
+++ b/core/java/android/server/search/SearchableInfo.java
@@ -103,6 +103,14 @@ public final class SearchableInfo implements Parcelable {
}
/**
+ * Gets the name of the package where the suggestion provider lives,
+ * or {@code null}.
+ */
+ public String getSuggestPackage() {
+ return mSuggestProviderPackage;
+ }
+
+ /**
* Gets the component name of the searchable activity.
*/
public ComponentName getSearchActivity() {