From 103cff55bf3e72251380f78ebcaef8535586c738 Mon Sep 17 00:00:00 2001 From: MUEDSA <7676275+muedsa@users.noreply.github.com> Date: Wed, 8 Nov 2023 17:55:30 +0800 Subject: [PATCH] update: something --- .../com/muedsa/agetv/ui/features/playback/PlaybackScreen.kt | 2 +- .../muedsa/agetv/ui/features/setting/AppSettingScreen.kt | 2 +- .../kotlin/com/muedsa/agetv/viewmodel/PlaybackViewModel.kt | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/kotlin/com/muedsa/agetv/ui/features/playback/PlaybackScreen.kt b/app/src/main/kotlin/com/muedsa/agetv/ui/features/playback/PlaybackScreen.kt index 47e8ebe..f3e2be8 100644 --- a/app/src/main/kotlin/com/muedsa/agetv/ui/features/playback/PlaybackScreen.kt +++ b/app/src/main/kotlin/com/muedsa/agetv/ui/features/playback/PlaybackScreen.kt @@ -53,7 +53,7 @@ fun PlaybackScreen( } if (danmakuListLD.type == LazyType.SUCCESS && danmakuSettingLD.type == LazyType.SUCCESS) { - var danmakuSetting = danmakuSettingLD.data!! + val danmakuSetting = danmakuSettingLD.data!! DanmakuVideoPlayer( debug = BuildConfig.DEBUG, diff --git a/app/src/main/kotlin/com/muedsa/agetv/ui/features/setting/AppSettingScreen.kt b/app/src/main/kotlin/com/muedsa/agetv/ui/features/setting/AppSettingScreen.kt index dff8237..6f202d7 100644 --- a/app/src/main/kotlin/com/muedsa/agetv/ui/features/setting/AppSettingScreen.kt +++ b/app/src/main/kotlin/com/muedsa/agetv/ui/features/setting/AppSettingScreen.kt @@ -67,7 +67,7 @@ fun AppSettingScreen( ) { Text( modifier = Modifier.width(100.dp), - text = "弹幕开关", + text = "全局弹幕开关", color = MaterialTheme.colorScheme.onBackground, style = MaterialTheme.typography.titleMedium ) diff --git a/app/src/main/kotlin/com/muedsa/agetv/viewmodel/PlaybackViewModel.kt b/app/src/main/kotlin/com/muedsa/agetv/viewmodel/PlaybackViewModel.kt index 1a3a05b..974c2ad 100644 --- a/app/src/main/kotlin/com/muedsa/agetv/viewmodel/PlaybackViewModel.kt +++ b/app/src/main/kotlin/com/muedsa/agetv/viewmodel/PlaybackViewModel.kt @@ -134,15 +134,15 @@ class PlaybackViewModel @Inject constructor( stopState: State ) { viewModelScope.launch(Dispatchers.Unconfined) { - LogUtil.d("[Player position saver-${id}] running for $aid-$episodeTitle") + LogUtil.d("[PlayerPositionSaver-${id}] running for $aid-$episodeTitle") while (!stopState.value) { delay(15 * 1000) val pos = withContext(Dispatchers.Main) { exoPlayer.currentPosition } - LogUtil.d("[Player position saver-${id}] save pos: $pos for $aid-$episodeTitle") + LogUtil.d("[PlayerPositionSaver-${id}] save pos: $pos for $aid-$episodeTitle") } - LogUtil.d("[Player position saver-${id}] stop for $aid-$episodeTitle") + LogUtil.d("[PlayerPositionSaver-${id}] stop for $aid-$episodeTitle") synchronized(_saverIdSet) { _saverIdSet.remove(id) }