diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2023-03-08 22:59:31 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2023-03-08 22:59:31 +0530 |
commit | d8dbe74d3a6666dc2cc997e18e802e4a14a344d7 (patch) | |
tree | 94b20cbcff3fd52e6bf844a184898f7d6bb77db5 /app/src/main/java | |
parent | 16d6b1e85341c5ffd55e63aed7680e42c7d8d931 (diff) |
chore: add more logging to biometric operations
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/app/passwordstore/util/auth/BiometricAuthenticator.kt | 4 |
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)) } } |