From 0fa2521592ae5e2e3918073bc7fcd0e102749f4d Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Wed, 8 Mar 2023 23:05:19 +0530 Subject: fix: also swallow retry attempts in SSHJ biometric auth --- app/src/main/java/app/passwordstore/util/git/operation/GitOperation.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/src/main/java') diff --git a/app/src/main/java/app/passwordstore/util/git/operation/GitOperation.kt b/app/src/main/java/app/passwordstore/util/git/operation/GitOperation.kt index 38cc6a5b..7ee34404 100644 --- a/app/src/main/java/app/passwordstore/util/git/operation/GitOperation.kt +++ b/app/src/main/java/app/passwordstore/util/git/operation/GitOperation.kt @@ -15,6 +15,7 @@ import app.passwordstore.ui.sshkeygen.SshKeyImportActivity import app.passwordstore.util.auth.BiometricAuthenticator import app.passwordstore.util.auth.BiometricAuthenticator.Result.Cancelled import app.passwordstore.util.auth.BiometricAuthenticator.Result.Failure +import app.passwordstore.util.auth.BiometricAuthenticator.Result.Retry import app.passwordstore.util.auth.BiometricAuthenticator.Result.Success import app.passwordstore.util.git.GitCommandExecutor import app.passwordstore.util.git.sshj.SshAuthMethod @@ -172,7 +173,7 @@ abstract class GitOperation(protected val callingActivity: FragmentActivity) { callingActivity, R.string.biometric_prompt_title_ssh_auth ) { result -> - if (result !is Failure) cont.resume(result) + if (result !is Failure && result !is Retry) cont.resume(result) } } } -- cgit v1.2.3