summaryrefslogtreecommitdiffhomepage
path: root/app/src/main
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-07-29 18:44:30 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-07-29 18:44:30 +0200
commit5dfc5659ada0ac0d7f36cbfcedd04a44e8605349 (patch)
treeb7d315c26ff995abc8ffb19006124391bc8963e3 /app/src/main
parentc4102992ae219d0cb9a8afecd09582500b361c6c (diff)
ConfigNamingDialog: use name input filter
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/res/layout/config_naming_dialog_fragment.xml11
1 files changed, 9 insertions, 2 deletions
diff --git a/app/src/main/res/layout/config_naming_dialog_fragment.xml b/app/src/main/res/layout/config_naming_dialog_fragment.xml
index aae78049..12871a85 100644
--- a/app/src/main/res/layout/config_naming_dialog_fragment.xml
+++ b/app/src/main/res/layout/config_naming_dialog_fragment.xml
@@ -1,5 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
-<layout xmlns:android="http://schemas.android.com/apk/res/android">
+<layout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto">
+
+ <data>
+ <import type="com.wireguard.android.widget.NameInputFilter" />
+ </data>
<FrameLayout
android:layout_width="match_parent"
@@ -15,7 +20,9 @@
android:id="@+id/tunnel_name_text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:hint="@string/tunnel_name" />
+ android:hint="@string/tunnel_name"
+ android:inputType="textNoSuggestions|textVisiblePassword"
+ app:filter="@{NameInputFilter.newInstance()}" />
</android.support.design.widget.TextInputLayout>