From 908796c4f3eca79d2168dcc99bf31b572acd08e0 Mon Sep 17 00:00:00 2001 From: sspanak Date: Tue, 26 Nov 2024 18:47:37 +0200 Subject: [PATCH] explicitly disabled the focus of the Status Bar and the Suggestion Bar to prevent unwanted highlighting on some devices --- app/src/main/res/layout/main_small.xml | 11 ++++++++++- app/src/main/res/layout/suggestion_list.xml | 6 ++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/app/src/main/res/layout/main_small.xml b/app/src/main/res/layout/main_small.xml index 7957ca01..7a1cc4d0 100644 --- a/app/src/main/res/layout/main_small.xml +++ b/app/src/main/res/layout/main_small.xml @@ -12,12 +12,18 @@ + android:layout_height="@dimen/candidate_height" + android:defaultFocusHighlightEnabled="false" + android:focusable="false" + android:focusableInTouchMode="false"> @@ -26,6 +32,9 @@ android:id="@+id/suggestions_bar" android:layout_width="match_parent" android:layout_height="match_parent" + android:defaultFocusHighlightEnabled="false" + android:focusable="false" + android:focusableInTouchMode="false" android:gravity="center_vertical" android:orientation="horizontal" android:scrollbars="none" /> diff --git a/app/src/main/res/layout/suggestion_list.xml b/app/src/main/res/layout/suggestion_list.xml index 8f7d0e6f..d8221c1c 100644 --- a/app/src/main/res/layout/suggestion_list.xml +++ b/app/src/main/res/layout/suggestion_list.xml @@ -2,12 +2,18 @@