From bee6ebe3b419c08661b1f0aa8e555ecb62d2798b Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sat, 28 Mar 2020 15:21:20 -0600 Subject: TunnelEditor: move generate button to inside box Signed-off-by: Jason A. Donenfeld --- ui/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui/src/main/java/com') diff --git a/ui/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.kt b/ui/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.kt index 99a77494..3139b29a 100644 --- a/ui/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.kt +++ b/ui/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.kt @@ -17,6 +17,7 @@ import android.view.WindowManager import android.view.inputmethod.InputMethodManager import android.widget.Toast import com.google.android.material.snackbar.Snackbar +import com.google.android.material.textfield.TextInputLayout import com.wireguard.android.Application import com.wireguard.android.R import com.wireguard.android.backend.Tunnel @@ -73,6 +74,7 @@ class TunnelEditorFragment : BaseFragment(), AppExclusionListener { executePendingBindings() setUpRoot(root as ViewGroup) setUpScrollingContent(mainContainer, null) + privateKeyTextLayout.setEndIconOnClickListener { config?.`interface`?.generateKeyPair() } } requireActivity().window.addFlags(WindowManager.LayoutParams.FLAG_SECURE) return binding?.root -- cgit v1.2.3