Fix direct boot

This commit is contained in:
Mygod
2018-10-08 13:23:16 +08:00
parent 26043bdefc
commit 54ed6eab42

View File

@@ -7,7 +7,7 @@ import io.fabric.sdk.android.Fabric
import timber.log.Timber import timber.log.Timber
fun initTimber() { fun initTimber() {
Fabric.with(app, Crashlytics()) Fabric.with(app.deviceStorage, Crashlytics())
Timber.plant(object : Timber.DebugTree() { Timber.plant(object : Timber.DebugTree() {
override fun log(priority: Int, tag: String?, message: String, t: Throwable?) { override fun log(priority: Int, tag: String?, message: String, t: Throwable?) {
if (t == null) Crashlytics.log(priority, tag, message) else { if (t == null) Crashlytics.log(priority, tag, message) else {