From 9f677bc4f0c396ba2cb867e9a1b03fc654c14533 Mon Sep 17 00:00:00 2001 From: Mike LeBeau Date: Thu, 1 Apr 2010 14:57:10 -0700 Subject: Add "android.speech.extras.SEND_APPLICATION_ID_EXTRA"=false to the voice search intent, as discussed in http://b/2546173 Change-Id: I60650d096a874cfe089a4ba691c9ae44802f2419 --- src/com/android/browser/TitleBar.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/com/android') diff --git a/src/com/android/browser/TitleBar.java b/src/com/android/browser/TitleBar.java index b377a7192..2c255344e 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); -- cgit v1.2.3