diff options
author | Samuel Holland <samuel@sholland.org> | 2018-01-06 04:24:43 -0600 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2018-01-06 05:18:34 -0600 |
commit | 2206dfc432b51e8cc8276c255ba2ac8dbc1ff4ea (patch) | |
tree | 5e51846b2fe158c2ed72f7d7514b6381dc189054 /app/src/main/res/layout | |
parent | 193de10972090338a721454503d3e6408eb76660 (diff) |
TunnelDetailFragment: Allow copying peer public keys
Signed-off-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/tunnel_detail_peer.xml | 4 |
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<com.wireguard.config.Peer>" /> @@ -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 |