summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/res
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res')
-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>