aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillActivity.kt
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2020-04-21 13:30:42 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2020-04-21 15:55:26 +0530
commit500ab609737c9f297962ed6a1cd935a27f39517d (patch)
tree56e93788cbc350b3f3bcaf27686ddb25c1faa7d1 /app/src/main/java/com/zeapo/pwdstore/autofill/AutofillActivity.kt
parent72166c6912ea596e5087e553c64bfc5dd9ed3742 (diff)
downloadHardenedPass-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/autofill/AutofillActivity.kt')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/autofill/AutofillActivity.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillActivity.kt b/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillActivity.kt
index bd22f4a4..87881968 100644
--- a/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillActivity.kt
+++ b/app/src/main/java/com/zeapo/pwdstore/autofill/AutofillActivity.kt
@@ -12,10 +12,11 @@ import android.content.SharedPreferences
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.edit
+import com.github.ajalt.timberkt.Timber.tag
+import com.github.ajalt.timberkt.e
import com.zeapo.pwdstore.PasswordStore
import com.zeapo.pwdstore.utils.splitLines
import org.eclipse.jgit.util.StringUtils
-import timber.log.Timber
// blank activity started by service for calling startIntentSenderForResult
class AutofillActivity : AppCompatActivity() {
@@ -29,7 +30,7 @@ class AutofillActivity : AppCompatActivity() {
val pi = extras.getParcelable<PendingIntent>("pending_intent") ?: return
startIntentSenderForResult(pi.intentSender, REQUEST_CODE_DECRYPT_AND_VERIFY, null, 0, 0, 0)
} catch (e: IntentSender.SendIntentException) {
- Timber.tag(AutofillService.Constants.TAG).e(e, "SendIntentException")
+ tag(AutofillService.Constants.TAG).e(e) { "SendIntentException" }
}
} else if (extras != null && extras.containsKey("pick")) {
val intent = Intent(applicationContext, PasswordStore::class.java)