only print ScreenTransition on preview build only

This commit is contained in:
Cuong-Tran 2024-10-22 11:43:51 +07:00
parent 03c2521118
commit 3a48f424f8
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2

View file

@ -15,7 +15,7 @@ import cafe.adriel.voyager.core.screen.uniqueScreenKey
import cafe.adriel.voyager.core.stack.StackEvent
import cafe.adriel.voyager.navigator.Navigator
import cafe.adriel.voyager.transitions.ScreenTransitionContent
import eu.kanade.tachiyomi.util.system.isReleaseBuildType
import eu.kanade.tachiyomi.util.system.isPreviewBuildType
import kotlinx.coroutines.CoroutineName
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
@ -94,7 +94,7 @@ fun ScreenTransition(
modifier = modifier,
label = "screen-transition",
) { screen ->
if (!isReleaseBuildType) {
if (isPreviewBuildType) {
logcat(LogPriority.ERROR) { "ScreenTransition: ${screen.key}" }
}
navigator.saveableState("screen-transition", screen) {