diff options
| author | Harsh Shandilya <me@msfjarvis.dev> | 2020-04-21 13:30:42 +0530 |
|---|---|---|
| committer | Harsh Shandilya <me@msfjarvis.dev> | 2020-04-21 15:55:26 +0530 |
| commit | 500ab609737c9f297962ed6a1cd935a27f39517d (patch) | |
| tree | 56e93788cbc350b3f3bcaf27686ddb25c1faa7d1 /app/src/main/java/com/zeapo/pwdstore/utils/auth | |
| parent | 72166c6912ea596e5087e553c64bfc5dd9ed3742 (diff) | |
| download | HardenedPass-500ab609737c9f297962ed6a1cd935a27f39517d.tar.gz HardenedPass-500ab609737c9f297962ed6a1cd935a27f39517d.zip | |
treewide: switch to logging via timberkt
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/java/com/zeapo/pwdstore/utils/auth')
| -rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/utils/auth/Authenticator.kt | 9 |
1 files changed, 5 insertions, 4 deletions
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)) } } |
