summaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2023-03-08 22:59:31 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2023-03-08 22:59:31 +0530
commitd8dbe74d3a6666dc2cc997e18e802e4a14a344d7 (patch)
tree94b20cbcff3fd52e6bf844a184898f7d6bb77db5 /app/src/main/java
parent16d6b1e85341c5ffd55e63aed7680e42c7d8d931 (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.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))
}
}