From: Tobias Brunner Date: Thu, 4 Oct 2018 09:48:45 +0000 (+0200) Subject: android: Force the two line button to be focusable X-Git-Tag: 5.7.2dr1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5442e8a1610203ef9d2661f8bdb03cd4d23261cc;p=thirdparty%2Fstrongswan.git 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. --- 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 657c7fefc9..083af1255a 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" >