diff options
author | Bjorn Bringert <bringert@android.com> | 2010-09-16 12:11:04 +0100 |
---|---|---|
committer | Bjorn Bringert <bringert@android.com> | 2010-09-16 12:11:04 +0100 |
commit | 785ad9a5258db19e8c98eb7969aff453af944565 (patch) | |
tree | 71e45a9a352e2121088a715675eb037fc588b899 /src/com/android/browser/search | |
parent | 4346564c1f6faefff5e0d3fdc7f189ec2e948019 (diff) | |
download | packages_apps_browser-785ad9a5258db19e8c98eb7969aff453af944565.zip packages_apps_browser-785ad9a5258db19e8c98eb7969aff453af944565.tar.gz packages_apps_browser-785ad9a5258db19e8c98eb7969aff453af944565.tar.bz2 |
Send WEB_SEARCH intent straight to default search provider if selected
Bug: 3002103
Change-Id: I51d7bd932e4ee5359da8d1361379b4413963eeb6
Diffstat (limited to 'src/com/android/browser/search')
-rw-r--r-- | src/com/android/browser/search/DefaultSearchEngine.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/browser/search/DefaultSearchEngine.java b/src/com/android/browser/search/DefaultSearchEngine.java index c939de7..f282b0b 100644 --- a/src/com/android/browser/search/DefaultSearchEngine.java +++ b/src/com/android/browser/search/DefaultSearchEngine.java @@ -82,6 +82,7 @@ public class DefaultSearchEngine implements SearchEngine { public void startSearch(Context context, String query, Bundle appData, String extraData) { try { Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); + intent.setComponent(mSearchable.getSearchActivity()); intent.addCategory(Intent.CATEGORY_DEFAULT); intent.putExtra(SearchManager.QUERY, query); if (appData != null) { |