diff --git a/app/src/main/java/dev/msfjarvis/aps/ui/sshkeygen/SshKeyGenActivity.kt b/app/src/main/java/dev/msfjarvis/aps/ui/sshkeygen/SshKeyGenActivity.kt index c20255386..ae4208133 100644 --- a/app/src/main/java/dev/msfjarvis/aps/ui/sshkeygen/SshKeyGenActivity.kt +++ b/app/src/main/java/dev/msfjarvis/aps/ui/sshkeygen/SshKeyGenActivity.kt @@ -109,7 +109,10 @@ class SshKeyGenActivity : AppCompatActivity() { BiometricAuthenticator.authenticate( this@SshKeyGenActivity, R.string.biometric_prompt_title_ssh_keygen - ) { cont.resume(it) } + ) { + // Do not cancel on failed attempts as these are handled by the authenticator UI. + if (it !is BiometricAuthenticator.Result.Failure) cont.resume(it) + } } } if (result !is BiometricAuthenticator.Result.Success)