diff options
author | Bjorn Bringert <bringert@android.com> | 2009-09-19 11:01:12 +0100 |
---|---|---|
committer | Bjorn Bringert <bringert@android.com> | 2009-09-21 06:47:57 +0100 |
commit | 0e62e2df369b1f5a8e8ed38d3a6af6f568caf5e4 (patch) | |
tree | 98a76ccb2906bb3ff6e9e3231b75555d946c6770 /core | |
parent | 25a13907aa8e4478e29237641f8a47b862ff7e92 (diff) | |
download | frameworks_base-0e62e2df369b1f5a8e8ed38d3a6af6f568caf5e4.zip frameworks_base-0e62e2df369b1f5a8e8ed38d3a6af6f568caf5e4.tar.gz frameworks_base-0e62e2df369b1f5a8e8ed38d3a6af6f568caf5e4.tar.bz2 |
Set intent_component of in-app shortcuts to app itself
Fixes http://b/issue?id=2130474
"Shortcuts created by pivoted-in search do not
have intent_component_name set"
Change-Id: I702fe39348b762393ed08ce9905771eb892bf782
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/app/SearchDialog.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/app/SearchDialog.java b/core/java/android/app/SearchDialog.java index d05c9ab..92515ae 100644 --- a/core/java/android/app/SearchDialog.java +++ b/core/java/android/app/SearchDialog.java @@ -1218,7 +1218,7 @@ public class SearchDialog extends Dialog implements OnItemClickListener, OnItemS cv.put(SearchManager.SUGGEST_COLUMN_INTENT_ACTION, intent.getAction()); cv.put(SearchManager.SUGGEST_COLUMN_INTENT_DATA, intent.getDataString()); cv.put(SearchManager.SUGGEST_COLUMN_INTENT_COMPONENT_NAME, - intent.getStringExtra(SearchManager.COMPONENT_NAME_KEY)); + intent.getComponent().flattenToShortString()); // ensure the icons will work for global search cv.put(SearchManager.SUGGEST_COLUMN_ICON_1, |