From fb919a72262b43ffa3d93239afa6fb1621341f28 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Tue, 22 Aug 2017 21:48:42 -0500 Subject: Use data binding to provide EditText input filters Signed-off-by: Jason A. Donenfeld --- app/src/main/res/layout/config_edit_fragment.xml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'app/src/main/res/layout') diff --git a/app/src/main/res/layout/config_edit_fragment.xml b/app/src/main/res/layout/config_edit_fragment.xml index 4f48727c..fa936517 100644 --- a/app/src/main/res/layout/config_edit_fragment.xml +++ b/app/src/main/res/layout/config_edit_fragment.xml @@ -1,8 +1,13 @@ - + + + + + @@ -32,7 +37,8 @@ android:layout_height="wrap_content" android:layout_below="@+id/config_name_label" android:inputType="textCapWords" - android:text="@={config.name}" /> + android:text="@={config.name}" + app:filter="@{NameInputFilter.newInstance()}" /> + android:text="@={config.interface.privateKey}" + app:filter="@{KeyInputFilter.newInstance()}" />