am b307ceb4: Merge "SearchWidget: passing APP_DATA to voice intent"

* commit 'b307ceb43fa96e8d54851c20278a4344469c9269':
  SearchWidget: passing APP_DATA to voice intent
This commit is contained in:
Jean-Baptiste Queru
2012-09-04 11:38:28 -07:00
committed by Android Git Automerger

View File

@@ -1506,6 +1506,9 @@ public class SearchView extends LinearLayout implements CollapsibleActionView {
// because the voice search activity will always need to insert "QUERY" into
// it anyway.
Bundle queryExtras = new Bundle();
if (mAppSearchData != null) {
queryExtras.putParcelable(SearchManager.APP_DATA, mAppSearchData);
}
// Now build the intent to launch the voice search. Add all necessary
// extras to launch the voice recognizer, and then all the necessary extras