From cd868bc9972eb7af9fd67c244aff9c0a86ae6a62 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Thu, 24 Aug 2017 02:01:19 -0500 Subject: ConfigEditFragment: Add a field for the optional pre-shared key Signed-off-by: Jason A. Donenfeld --- app/src/main/res/layout/config_edit_peer.xml | 19 ++++++++++++++++++- app/src/main/res/values/strings.xml | 2 ++ 2 files changed, 20 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/src/main/res/layout/config_edit_peer.xml b/app/src/main/res/layout/config_edit_peer.xml index 6bb13047..18c2eec1 100644 --- a/app/src/main/res/layout/config_edit_peer.xml +++ b/app/src/main/res/layout/config_edit_peer.xml @@ -62,10 +62,27 @@ app:filter="@{KeyInputFilter.newInstance()}" /> + + + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 7c707f11..62e4fa4e 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -19,6 +19,7 @@ Generate (auto) (generated) + (optional) (random) Interface Listen port @@ -28,6 +29,7 @@ Peer Persistent keepalive No configuration selected + Pre-shared key Primary configuration This configuration will be controlled by the quick settings tile Private key -- cgit v1.2.3