From 169d0944718609adba3ee862c4ccc44ce561ac96 Mon Sep 17 00:00:00 2001 From: Niels van Velzen Date: Mon, 11 Nov 2024 22:20:44 +0100 Subject: [PATCH] Fix skipping to end of video reports wrong end time --- .../jellyfin/androidtv/ui/playback/PlaybackController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/jellyfin/androidtv/ui/playback/PlaybackController.java b/app/src/main/java/org/jellyfin/androidtv/ui/playback/PlaybackController.java index 661ab43af5..308019e280 100644 --- a/app/src/main/java/org/jellyfin/androidtv/ui/playback/PlaybackController.java +++ b/app/src/main/java/org/jellyfin/androidtv/ui/playback/PlaybackController.java @@ -888,8 +888,10 @@ public void seek(long pos, boolean skipToNext) { if (skipToNext && pos >= (getDuration() - 100)) { // Since we've skipped ahead, set the current position so the PlaybackStopInfo will report the correct end time mCurrentPosition = getDuration(); - // Make sure we also set the seek position so it won't get overwritten in refreshCurrentPosition() + // Make sure we also set the seek positions so mCurrentPosition won't get overwritten in refreshCurrentPosition() + currentSkipPos = mCurrentPosition; mSeekPosition = mCurrentPosition; + // Finalize item playback itemComplete(); return; }