We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e72942 commit f4649e8Copy full SHA for f4649e8
app/shared/src/commonMain/kotlin/ui/subject/episode/EpisodeViewModel.kt
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright (C) 2024 OpenAni and contributors.
+ * Copyright (C) 2024-2025 OpenAni and contributors.
3
*
4
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
5
* Use of this source code is governed by the GNU AGPLv3 license, which can be found at the following link.
@@ -634,7 +634,9 @@ class EpisodeViewModel(
634
super.onCleared()
635
backgroundScope.launch(NonCancellable + CoroutineName("EpisodeViewModel#onCleared")) {
636
fetchPlayState.onClose()
637
- player.stopPlayback()
+ withContext(Dispatchers.Main) {
638
+ player.stopPlayback()
639
+ }
640
}
641
642
0 commit comments