Use a special flag to tell SearchDialog to show the microphone.
Fix for http://b/issue?id=2501400
Requires a change to frameworks/base
Change-Id: I002a7b8320d3927b2e93b7fbbd43537208fb7756
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java
index 2469408..1903713 100644
--- a/src/com/android/browser/BrowserActivity.java
+++ b/src/com/android/browser/BrowserActivity.java
@@ -467,9 +467,10 @@
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