summaryrefslogtreecommitdiffhomepage
path: root/android/src/main
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-10-08 20:47:31 +0000
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-10-19 11:51:48 +0000
commitcd7599ecd3dafed1d00d683d6f8cb15d9091c10d (patch)
tree8b3187cd1d42ea351385e19dc55d0096b7efec3b /android/src/main
parent6eb3b49e3d1ea77c69213ce52a3d6bfe55aacdf3 (diff)
downloadmullvadvpn-cd7599ecd3dafed1d00d683d6f8cb15d9091c10d.tar.xz
mullvadvpn-cd7599ecd3dafed1d00d683d6f8cb15d9091c10d.zip
Make MTU cell not focusable
Diffstat (limited to 'android/src/main')
-rw-r--r--android/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/MtuCell.kt7
1 files changed, 5 insertions, 2 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/MtuCell.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/MtuCell.kt
index eb1463cd45..94ddc2838e 100644
--- a/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/MtuCell.kt
+++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/widget/MtuCell.kt
@@ -66,8 +66,11 @@ class MtuCell : Cell {
) {}
init {
- cell.setEnabled(false)
- cell.addView(input)
+ cell.apply {
+ setEnabled(false)
+ setFocusable(false)
+ addView(input)
+ }
footer?.text =
context.getString(R.string.wireguard_mtu_footer, MIN_MTU_VALUE, MAX_MTU_VALUE)