summaryrefslogtreecommitdiffhomepage
path: root/app/src
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
commit77a7a33f4f0d58cebbe6b0bc1b35d8d20df66554 (patch)
treeb7d315c26ff995abc8ffb19006124391bc8963e3 /app/src
parenta19e619e1b94ac6fda3998fa383008ac24de193b (diff)
ConfigNamingDialog: use name input filter
Diffstat (limited to 'app/src')
-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>