Skip to content

Commit d3b74b9

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

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
@@ -1506,6 +1506,9 @@ private Intent createVoiceAppSearchIntent(Intent baseIntent, SearchableInfo sear
15061506
// because the voice search activity will always need to insert "QUERY" into
15071507
// it anyway.
15081508
Bundle queryExtras = new Bundle();
1509+
if (mAppSearchData != null) {
1510+
queryExtras.putParcelable(SearchManager.APP_DATA, mAppSearchData);
1511+
}
15091512

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

0 commit comments

Comments
 (0)