From 5442e8a1610203ef9d2661f8bdb03cd4d23261cc Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 4 Oct 2018 11:48:45 +0200 Subject: [PATCH] android: Force the two line button to be focusable On newer Android versions (8+) this does not seem to be necessary (adding the onClick handler also sets "clickable" and that in turn seems to make it focusable), however, for older releases it is (tested with 7.1.1 keyboard navigation just skips over the button). This was seen on a Fire TV stick. --- .../android/app/src/main/res/layout/two_line_button.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/frontends/android/app/src/main/res/layout/two_line_button.xml b/src/frontends/android/app/src/main/res/layout/two_line_button.xml index 657c7fefc..083af1255 100644 --- a/src/frontends/android/app/src/main/res/layout/two_line_button.xml +++ b/src/frontends/android/app/src/main/res/layout/two_line_button.xml @@ -19,6 +19,7 @@ android:minHeight="?android:attr/listPreferredItemHeight" android:background="?android:attr/selectableItemBackground" android:mode="twoLine" + android:focusable="true" android:padding="10dp" >