OSDN Git Service

Use a special flag to tell SearchDialog to show the microphone.
authorLeon Scroggins <scroggo@google.com>
Tue, 9 Mar 2010 22:26:56 +0000 (17:26 -0500)
committerLeon Scroggins <scroggo@google.com>
Wed, 10 Mar 2010 18:06:39 +0000 (13:06 -0500)
Fix for http://b/issue?id=2501400

Requires a change to frameworks/base

Change-Id: I002a7b8320d3927b2e93b7fbbd43537208fb7756

src/com/android/browser/BrowserActivity.java

index 2469408..1903713 100644 (file)
@@ -467,9 +467,10 @@ public class BrowserActivity extends Activity
         bp.setQueryResults(mTabControl.getCurrentTab().getVoiceSearchResults());
         client.release();
 
-        startSearch(result, false,
-                createGoogleSearchSourceBundle(GOOGLE_SEARCH_SOURCE_SEARCHKEY),
-                false);
+        Bundle bundle = createGoogleSearchSourceBundle(
+                GOOGLE_SEARCH_SOURCE_SEARCHKEY);
+        bundle.putBoolean(SearchManager.CONTEXT_IS_VOICE, true);
+        startSearch(result, false, bundle, false);
     }
 
     @Override