TunnelDetailFragment: Allow copying peer public keys

Signed-off-by: Samuel Holland <samuel@sholland.org>
This commit is contained in:
Samuel Holland 2018-01-06 04:24:43 -06:00
parent 193de10972
commit 2206dfc432

View File

@ -3,6 +3,8 @@
<data> <data>
<import type="com.wireguard.android.util.ClipboardUtils" />
<variable <variable
name="collection" name="collection"
type="android.databinding.ObservableList&lt;com.wireguard.config.Peer&gt;" /> type="android.databinding.ObservableList&lt;com.wireguard.config.Peer&gt;" />
@ -46,8 +48,10 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_below="@+id/public_key_label" android:layout_below="@+id/public_key_label"
android:contentDescription="@string/public_key_description"
android:ellipsize="end" android:ellipsize="end"
android:maxLines="1" android:maxLines="1"
android:onClick="@{ClipboardUtils::copyTextView}"
android:text="@{item.publicKey}" /> android:text="@{item.publicKey}" />
<TextView <TextView