Skip to content

Commit b307ceb

Browse files
Jean-Baptiste Queruandroid code review
authored andcommitted
Merge "SearchWidget: passing APP_DATA to voice intent"
2 parents 0dab1a1 + 1bcfe84 commit b307ceb

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)