]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
android: Force the two line button to be focusable
authorTobias Brunner <tobias@strongswan.org>
Thu, 4 Oct 2018 09:48:45 +0000 (11:48 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 17 Oct 2018 09:56:30 +0000 (11:56 +0200)
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.

src/frontends/android/app/src/main/res/layout/two_line_button.xml

index 657c7fefc9f8a82bd2ea2653d8ae69825c801afe..083af1255a3e85b69a6f761a20c0bb1c9543b336 100644 (file)
@@ -19,6 +19,7 @@
     android:minHeight="?android:attr/listPreferredItemHeight"
     android:background="?android:attr/selectableItemBackground"
     android:mode="twoLine"
+    android:focusable="true"
     android:padding="10dp" >
 
     <TextView