aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/res/layout/tunnel_editor_peer.xml
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-01-09 00:23:33 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-01-09 00:23:33 +0100
commit6361628e165d4275a47ae5f976c8891fb644b51a (patch)
tree33bdf5aef69f579498ad71c4a5df79928e71a5c9 /app/src/main/res/layout/tunnel_editor_peer.xml
parentTunnelListFragment: fix plural grammar (diff)
downloadwireguard-android-6361628e165d4275a47ae5f976c8891fb644b51a.tar.xz
wireguard-android-6361628e165d4275a47ae5f976c8891fb644b51a.zip
layout: never use suggestions
IP addresses and key material could be potentially sensitive. We also don't want any interactions with the suggestive text APIs. So, we mark it as both a visible password and we turn off suggestions. This will fix the length limit, too, in Android 8. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/res/layout/tunnel_editor_peer.xml')
-rw-r--r--app/src/main/res/layout/tunnel_editor_peer.xml8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/src/main/res/layout/tunnel_editor_peer.xml b/app/src/main/res/layout/tunnel_editor_peer.xml
index a3a2a9c8..ea731349 100644
--- a/app/src/main/res/layout/tunnel_editor_peer.xml
+++ b/app/src/main/res/layout/tunnel_editor_peer.xml
@@ -61,7 +61,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/public_key_label"
- android:inputType="textVisiblePassword"
+ android:inputType="textNoSuggestions|textVisiblePassword"
android:text="@={item.publicKey}"
app:filter="@{KeyInputFilter.newInstance()}" />
@@ -79,7 +79,7 @@
android:layout_height="wrap_content"
android:layout_below="@+id/pre_shared_key_label"
android:hint="@string/hint_optional"
- android:inputType="textNoSuggestions"
+ android:inputType="textNoSuggestions|textVisiblePassword"
android:text="@={item.preSharedKey}" />
<TextView
@@ -95,7 +95,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/allowed_ips_label"
- android:inputType="textNoSuggestions"
+ android:inputType="textNoSuggestions|textVisiblePassword"
android:text="@={item.allowedIPs}" />
<TextView
@@ -115,7 +115,7 @@
android:layout_alignParentStart="true"
android:layout_below="@+id/endpoint_label"
android:layout_toStartOf="@+id/persistent_keepalive_text"
- android:inputType="textNoSuggestions"
+ android:inputType="textNoSuggestions|textVisiblePassword"
android:text="@={item.endpoint}" />
<TextView