OSDN Git Service

Add "android.speech.extras.SEND_APPLICATION_ID_EXTRA"=false to the
authorMike LeBeau <mlebeau@android.com>
Thu, 1 Apr 2010 21:57:10 +0000 (14:57 -0700)
committerMike LeBeau <mlebeau@android.com>
Thu, 1 Apr 2010 23:16:05 +0000 (16:16 -0700)
voice search intent, as discussed in http://b/2546173

Change-Id: I60650d096a874cfe089a4ba691c9ae44802f2419

src/com/android/browser/TitleBar.java

index b377a71..2c25534 100644 (file)
@@ -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);