diff --git a/shared/src/commonMain/kotlin/fr/ajaury/gwenedeg/player/data/PlaybackRepositoryImpl.kt b/shared/src/commonMain/kotlin/fr/ajaury/gwenedeg/player/data/PlaybackRepositoryImpl.kt index ac9b740..97e55eb 100644 --- a/shared/src/commonMain/kotlin/fr/ajaury/gwenedeg/player/data/PlaybackRepositoryImpl.kt +++ b/shared/src/commonMain/kotlin/fr/ajaury/gwenedeg/player/data/PlaybackRepositoryImpl.kt @@ -42,7 +42,7 @@ internal class PlaybackRepositoryImpl( @OptIn(ExperimentalCoroutinesApi::class) private val currentPosition: Flow = playbackState.flatMapLatest { state -> - if (state == PlaybackState.PLAYING) { + if (state in listOf(PlaybackState.PLAYING, PlaybackState.PAUSED)) { flow { while (true) { emit(audioPlayer.currentPosition)