aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/res/layout/tunnel_detail_peer.xml
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res/layout/tunnel_detail_peer.xml')
-rw-r--r--app/src/main/res/layout/tunnel_detail_peer.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/res/layout/tunnel_detail_peer.xml b/app/src/main/res/layout/tunnel_detail_peer.xml
index 0de72dea..80ab5cff 100644
--- a/app/src/main/res/layout/tunnel_detail_peer.xml
+++ b/app/src/main/res/layout/tunnel_detail_peer.xml
@@ -3,6 +3,8 @@
<data>
+ <import type="com.wireguard.android.util.ClipboardUtils" />
+
<variable
name="collection"
type="android.databinding.ObservableList&lt;com.wireguard.config.Peer&gt;" />
@@ -46,8 +48,10 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/public_key_label"
+ android:contentDescription="@string/public_key_description"
android:ellipsize="end"
android:maxLines="1"
+ android:onClick="@{ClipboardUtils::copyTextView}"
android:text="@{item.publicKey}" />
<TextView