From d8dbe74d3a6666dc2cc997e18e802e4a14a344d7 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Wed, 8 Mar 2023 22:59:31 +0530 Subject: chore: add more logging to biometric operations --- .../main/java/app/passwordstore/util/auth/BiometricAuthenticator.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)) } } -- cgit v1.2.3