Skip to content

Commit b788556

Browse files
Jean-Baptiste QueruAndroid Git Automerger
authored andcommitted
am ad17717: am d3b74b9: am b307ceb: Merge "SearchWidget: passing APP_DATA to voice intent"
* commit 'ad17717e52576a05dffd1b99c06c46a80c149722': SearchWidget: passing APP_DATA to voice intent
2 parents b4597aa + ad17717 commit b788556

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/java/android/widget/SearchView.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1517,6 +1517,9 @@ private Intent createVoiceAppSearchIntent(Intent baseIntent, SearchableInfo sear
15171517
// because the voice search activity will always need to insert "QUERY" into
15181518
// it anyway.
15191519
Bundle queryExtras = new Bundle();
1520+
if (mAppSearchData != null) {
1521+
queryExtras.putParcelable(SearchManager.APP_DATA, mAppSearchData);
1522+
}
15201523

15211524
// Now build the intent to launch the voice search. Add all necessary
15221525
// extras to launch the voice recognizer, and then all the necessary extras

0 commit comments

Comments
 (0)