summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2017-08-24 02:11:55 -0500
committerSamuel Holland <samuel@sholland.org>2017-08-24 02:11:55 -0500
commit4e5b9ef2e20d296b616405e142e4decea21a1218 (patch)
treeda2723ce093902dd87d1f6e8b3899bdad481e550 /app/src/main/res/layout
parentde99c12a039d8823c2f79b01ab349313f220e3b9 (diff)
ConfigEditFragment: Copy public key on click
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/config_edit_fragment.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/src/main/res/layout/config_edit_fragment.xml b/app/src/main/res/layout/config_edit_fragment.xml
index 86045324..e0d564f9 100644
--- a/app/src/main/res/layout/config_edit_fragment.xml
+++ b/app/src/main/res/layout/config_edit_fragment.xml
@@ -5,6 +5,8 @@
<data>
+ <import type="com.wireguard.android.ConfigEditFragment" />
+
<import type="com.wireguard.android.KeyInputFilter" />
<import type="com.wireguard.android.NameInputFilter" />
@@ -107,6 +109,7 @@
android:focusable="false"
android:hint="@string/hint_generated"
android:maxLines="1"
+ android:onClick="@{(view) -> ConfigEditFragment.copyPublicKey(view.getContext(), config.interface.publicKey)}"
android:text="@{config.interface.publicKey}" />
<TextView