summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/TitleBar.java
diff options
context:
space:
mode:
authorMike LeBeau <mlebeau@android.com>2010-04-01 14:57:10 -0700
committerMike LeBeau <mlebeau@android.com>2010-04-01 16:16:05 -0700
commit9f677bc4f0c396ba2cb867e9a1b03fc654c14533 (patch)
tree3845746cf3c048992b58a9701ba746498510625e /src/com/android/browser/TitleBar.java
parent940e57fdd2fc09398c84fd3b8f3e993bc6fee4a0 (diff)
downloadandroid_packages_apps_Gello-9f677bc4f0c396ba2cb867e9a1b03fc654c14533.tar.gz
android_packages_apps_Gello-9f677bc4f0c396ba2cb867e9a1b03fc654c14533.tar.bz2
android_packages_apps_Gello-9f677bc4f0c396ba2cb867e9a1b03fc654c14533.zip
Add "android.speech.extras.SEND_APPLICATION_ID_EXTRA"=false to the
voice search intent, as discussed in http://b/2546173 Change-Id: I60650d096a874cfe089a4ba691c9ae44802f2419
Diffstat (limited to 'src/com/android/browser/TitleBar.java')
-rw-r--r--src/com/android/browser/TitleBar.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/browser/TitleBar.java b/src/com/android/browser/TitleBar.java
index b377a719..2c255344 100644
--- a/src/com/android/browser/TitleBar.java
+++ b/src/com/android/browser/TitleBar.java
@@ -117,6 +117,11 @@ public class TitleBar extends LinearLayout {
mVoiceSearchIntent = new Intent(RecognizerIntent.ACTION_WEB_SEARCH);
mVoiceSearchIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
RecognizerIntent.LANGUAGE_MODEL_WEB_SEARCH);
+ // This extra tells voice search not to send the application id in its
+ // results intent - http://b/2546173
+ //
+ // TODO: Make a constant for this extra.
+ mVoiceSearchIntent.putExtra("android.speech.extras.SEND_APPLICATION_ID_EXTRA", false);
PackageManager pm = context.getPackageManager();
ResolveInfo ri = pm.resolveActivity(mVoiceSearchIntent,
PackageManager.MATCH_DEFAULT_ONLY);