mirror of
https://github.com/null2264/yokai.git
synced 2025-06-20 18:24:42 +00:00
debug: Verbose logging for FlexibleAdapter
This commit is contained in:
parent
8ac8187977
commit
b974eff320
1 changed files with 8 additions and 0 deletions
|
@ -34,6 +34,8 @@ import coil3.util.DebugLogger
|
|||
import com.google.firebase.crashlytics.ktx.crashlytics
|
||||
import com.google.firebase.ktx.Firebase
|
||||
import com.hippo.unifile.UniFile
|
||||
import eu.davidea.flexibleadapter.FlexibleAdapter
|
||||
import eu.davidea.flexibleadapter.utils.Log.Level
|
||||
import eu.kanade.tachiyomi.appwidget.TachiyomiWidgetManager
|
||||
import eu.kanade.tachiyomi.core.preference.Preference
|
||||
import eu.kanade.tachiyomi.core.preference.PreferenceStore
|
||||
|
@ -139,6 +141,12 @@ open class App : Application(), DefaultLifecycleObserver, SingletonImageLoader.F
|
|||
.onEach { ImageUtil.hardwareBitmapThreshold = it }
|
||||
.launchIn(scope)
|
||||
|
||||
networkPreferences.verboseLogging().changes()
|
||||
.onEach { enabled ->
|
||||
FlexibleAdapter.enableLogs(if (enabled) Level.VERBOSE else Level.SUPPRESS)
|
||||
}
|
||||
.launchIn(scope)
|
||||
|
||||
scope.launchIO {
|
||||
with(TachiyomiWidgetManager()) { this@App.init() }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue