From 9489a977540fd30b5addf12fab269dc1df1acf02 Mon Sep 17 00:00:00 2001 From: David Liu Date: Fri, 16 Feb 2024 19:08:02 +0000 Subject: [PATCH] Fix keyboard navigation issue, searchbar not able to be selected. - make search toolbar focusable - set next tab navigation element to homepage_container Bug: 324420544 Test: manual Change-Id: I991390e9d980092dfe11b15dcb81563ed3b0d4d1 --- res/layout/search_bar.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/res/layout/search_bar.xml b/res/layout/search_bar.xml index dfc9596d9fc..1e83e22156c 100644 --- a/res/layout/search_bar.xml +++ b/res/layout/search_bar.xml @@ -34,6 +34,9 @@ android:paddingStart="@dimen/search_bar_padding_start" android:paddingEnd="@dimen/search_bar_padding_end" android:background="@drawable/search_bar_selected_background" + android:focusable="true" + android:focusableInTouchMode="true" + android:nextFocusForward="@+id/homepage_container" android:contentInsetStartWithNavigation="@dimen/search_bar_content_inset" android:navigationIcon="@drawable/ic_homepage_search">