TunnelDetailFragment: Allow copying peer public keys
Signed-off-by: Samuel Holland <samuel@sholland.org>
This commit is contained in:
		
							parent
							
								
									193de10972
								
							
						
					
					
						commit
						2206dfc432
					
				@ -3,6 +3,8 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    <data>
 | 
					    <data>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        <import type="com.wireguard.android.util.ClipboardUtils" />
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        <variable
 | 
					        <variable
 | 
				
			||||||
            name="collection"
 | 
					            name="collection"
 | 
				
			||||||
            type="android.databinding.ObservableList<com.wireguard.config.Peer>" />
 | 
					            type="android.databinding.ObservableList<com.wireguard.config.Peer>" />
 | 
				
			||||||
@ -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
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user