From d5ffa0848015f9ab0dd784819042db3b01a66a5c Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 30 Mar 2020 14:53:25 -0600 Subject: TunnelEditorFragment: don't show bioauth if already visible Signed-off-by: Jason A. Donenfeld --- ui/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.kt | 1 + 1 file changed, 1 insertion(+) 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 31f049ab..2e1e4531 100644 --- a/ui/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.kt +++ b/ui/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.kt @@ -235,6 +235,7 @@ class TunnelEditorFragment : BaseFragment(), AppExclusionListener { fun onKeyFocusChange(view: View, isFocused: Boolean) { if (!isFocused || showingAuthenticator) return val edit = view as? EditText ?: return + if (edit.inputType == InputType.TYPE_TEXT_FLAG_NO_SUGGESTIONS or InputType.TYPE_TEXT_VARIATION_VISIBLE_PASSWORD) return if (!haveShownKeys && edit.text.isNotEmpty()) { showingAuthenticator = true BiometricAuthenticator.authenticate(R.string.biometric_prompt_private_key_title, this) { -- cgit v1.2.3