From 500ab609737c9f297962ed6a1cd935a27f39517d Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 21 Apr 2020 13:30:42 +0530 Subject: treewide: switch to logging via timberkt Signed-off-by: Harsh Shandilya --- app/src/main/java/com/zeapo/pwdstore/utils/auth/Authenticator.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'app/src/main/java/com/zeapo/pwdstore/utils/auth') diff --git a/app/src/main/java/com/zeapo/pwdstore/utils/auth/Authenticator.kt b/app/src/main/java/com/zeapo/pwdstore/utils/auth/Authenticator.kt index 7fc69f95..34fc9455 100644 --- a/app/src/main/java/com/zeapo/pwdstore/utils/auth/Authenticator.kt +++ b/app/src/main/java/com/zeapo/pwdstore/utils/auth/Authenticator.kt @@ -8,8 +8,9 @@ import android.os.Handler import androidx.biometric.BiometricManager import androidx.biometric.BiometricPrompt import androidx.fragment.app.FragmentActivity +import com.github.ajalt.timberkt.Timber.tag +import com.github.ajalt.timberkt.d import com.zeapo.pwdstore.R -import timber.log.Timber internal class Authenticator( private val fragmentActivity: FragmentActivity, @@ -22,19 +23,19 @@ internal class Authenticator( override fun onAuthenticationError(errorCode: Int, errString: CharSequence) { super.onAuthenticationError(errorCode, errString) - Timber.tag(TAG).d("Error: $errorCode: $errString") + tag(TAG).d { "Error: $errorCode: $errString" } callback(AuthenticationResult.UnrecoverableError(errorCode, errString)) } override fun onAuthenticationFailed() { super.onAuthenticationFailed() - Timber.tag(TAG).d("Failed") + tag(TAG).d { "Failed" } callback(AuthenticationResult.Failure) } override fun onAuthenticationSucceeded(result: BiometricPrompt.AuthenticationResult) { super.onAuthenticationSucceeded(result) - Timber.tag(TAG).d("Success") + tag(TAG).d { "Success" } callback(AuthenticationResult.Success(result.cryptoObject)) } } -- cgit v1.2.3