aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/app/passwordstore/util/auth/BiometricAuthenticator.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/java/app/passwordstore/util/auth/BiometricAuthenticator.kt b/app/src/main/java/app/passwordstore/util/auth/BiometricAuthenticator.kt
index e9d7c3a4..777a4c91 100644
--- a/app/src/main/java/app/passwordstore/util/auth/BiometricAuthenticator.kt
+++ b/app/src/main/java/app/passwordstore/util/auth/BiometricAuthenticator.kt
@@ -60,7 +60,7 @@ object BiometricAuthenticator {
object : BiometricPrompt.AuthenticationCallback() {
override fun onAuthenticationError(errorCode: Int, errString: CharSequence) {
super.onAuthenticationError(errorCode, errString)
- logcat(TAG) { "BiometricAuthentication error: errorCode=$errorCode, msg=$errString" }
+ logcat(TAG) { "onAuthenticationError(errorCode=$errorCode, msg=$errString)" }
callback(
when (errorCode) {
BiometricPrompt.ERROR_CANCELED,
@@ -103,11 +103,13 @@ object BiometricAuthenticator {
override fun onAuthenticationFailed() {
super.onAuthenticationFailed()
+ logcat(TAG) { "onAuthenticationFailed()" }
callback(Result.Retry)
}
override fun onAuthenticationSucceeded(result: BiometricPrompt.AuthenticationResult) {
super.onAuthenticationSucceeded(result)
+ logcat(TAG) { "onAuthenticationSucceeded()" }
callback(Result.Success(result.cryptoObject))
}
}