diff options
author | Samuel Holland <samuel@sholland.org> | 2017-08-24 02:01:19 -0500 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2017-08-24 02:01:19 -0500 |
commit | bc8e618709d24c2b3e467be5d1a4c2c466e7df88 (patch) | |
tree | acb5518c2d92fcd28a68b67a38219daf61059842 /app/src/main/res/layout | |
parent | Peer: Add a field for the optional pre-shared key (diff) | |
download | wireguard-android-bc8e618709d24c2b3e467be5d1a4c2c466e7df88.tar.xz wireguard-android-bc8e618709d24c2b3e467be5d1a4c2c466e7df88.zip |
ConfigEditFragment: Add a field for the optional pre-shared key
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/config_edit_peer.xml | 19 |
1 files changed, 18 insertions, 1 deletions
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()}" /> <TextView - android:id="@+id/allowed_ips_label" + android:id="@+id/pre_shared_key_label" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/public_key_text" + android:labelFor="@+id/pre_shared_key_text" + android:text="@string/pre_shared_key" /> + + <EditText + android:id="@+id/pre_shared_key_text" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@+id/pre_shared_key_label" + android:hint="@string/hint_optional" + android:inputType="textNoSuggestions" + android:text="@={item.preSharedKey}" /> + + <TextView + android:id="@+id/allowed_ips_label" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@+id/pre_shared_key_text" android:labelFor="@+id/allowed_ips_text" android:text="@string/allowed_ips" /> |