From fa6208586e03153c5d1a1d8378552e6a579d2421 Mon Sep 17 00:00:00 2001 From: Kirill Zyusko Date: Thu, 12 Oct 2023 20:23:15 +0200 Subject: [PATCH] fix: don't emit `PlaybackTrackChanged` along with `PlaybackQueueEnded` on Android (#2161) --- .../java/com/doublesymmetry/trackplayer/service/MusicService.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/android/src/main/java/com/doublesymmetry/trackplayer/service/MusicService.kt b/android/src/main/java/com/doublesymmetry/trackplayer/service/MusicService.kt index 88be0e21e..455d3601e 100644 --- a/android/src/main/java/com/doublesymmetry/trackplayer/service/MusicService.kt +++ b/android/src/main/java/com/doublesymmetry/trackplayer/service/MusicService.kt @@ -595,7 +595,6 @@ class MusicService : HeadlessJsTaskService() { if (it == AudioPlayerState.ENDED && player.nextItem == null) { emitQueueEndedEvent() - emitPlaybackTrackChangedEvents(null, player.currentIndex, player.position.toSeconds()) } } }