We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed46c33 commit 0f984c7Copy full SHA for 0f984c7
1 file changed
core/src/main/java/xyz/gianlu/librespot/player/Player.java
@@ -583,6 +583,8 @@ void update(@NotNull Remote3Frame frame) {
583
if (frame.context == null)
584
throw new IllegalArgumentException("Invalid frame received!");
585
586
+ TrackId oldPlaying = state.getTrackCount() > 0 ? TrackId.fromTrackRef(state.getTrack(state.getPlayingTrackIndex())) : null;
587
+
588
state.setContextUri(frame.context.uri);
589
state.clearTrack();
590
@@ -595,6 +597,7 @@ void update(@NotNull Remote3Frame frame) {
595
597
}
596
598
599
if (pageIndex == -1) pageIndex = 0;
600
+ if (trackUid == null && oldPlaying != null) trackUid = oldPlaying.toSpotifyUri();
601
602
int index = -1;
603
List<Remote3Track> tracks = frame.context.pages.get(pageIndex).tracks;
0 commit comments