diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-03-30 14:53:25 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-03-30 14:53:25 -0600 |
commit | d5ffa0848015f9ab0dd784819042db3b01a66a5c (patch) | |
tree | 5f7da97b129d73b29ba73e5f0012621c5cd33fd8 | |
parent | 43ce69bef4715089016cb9258cf57367f331751c (diff) |
TunnelEditorFragment: don't show bioauth if already visible
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | ui/src/main/java/com/wireguard/android/fragment/TunnelEditorFragment.kt | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |