Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4bfa3479 authored by Yan Han's avatar Yan Han Committed by Android (Google) Code Review
Browse files

Merge "On TV, make KEYCODE_SEARCH launch Assistant with keyboard" into main

parents 6a2a01f0 15cac263
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3333,6 +3333,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
            Bundle args = new Bundle();
            args.putInt(Intent.EXTRA_ASSIST_INPUT_DEVICE_ID, event.getDeviceId());
            args.putLong(Intent.EXTRA_TIME, event.getEventTime());
            args.putBoolean(Intent.EXTRA_ASSIST_INPUT_HINT_KEYBOARD, true);
            ((SearchManager) getContext().getSystemService(Context.SEARCH_SERVICE))
                    .launchAssist(args);
            return true;