From 16c79c821973016e9a8d5264049aed6bf82ad2b3 Mon Sep 17 00:00:00 2001 From: Thompson3142 Date: Thu, 21 Nov 2024 22:42:42 +0100 Subject: [PATCH 1/2] Fixed player resuming from start when clicking on a timestamp --- app/src/main/java/org/schabi/newpipe/player/Player.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/schabi/newpipe/player/Player.java b/app/src/main/java/org/schabi/newpipe/player/Player.java index 49e72328e..110a34e1b 100644 --- a/app/src/main/java/org/schabi/newpipe/player/Player.java +++ b/app/src/main/java/org/schabi/newpipe/player/Player.java @@ -462,7 +462,9 @@ public final class Player implements PlaybackListener, Listener { if (oldPlayerType != playerType && playQueue != null) { // If playerType changes from one to another we should reload the player // (to disable/enable video stream or to set quality) - setRecovery(); + if (playerType != PlayerType.POPUP) { + setRecovery(); + } reloadPlayQueueManager(); } From f9711a3402b7dbe0d3df9c0b606d0fd0ab5b399a Mon Sep 17 00:00:00 2001 From: Thompson3142 Date: Sun, 24 Nov 2024 22:12:25 +0100 Subject: [PATCH 2/2] Removed call to setRecovery() entirely --- app/src/main/java/org/schabi/newpipe/player/Player.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/player/Player.java b/app/src/main/java/org/schabi/newpipe/player/Player.java index 110a34e1b..920435a7e 100644 --- a/app/src/main/java/org/schabi/newpipe/player/Player.java +++ b/app/src/main/java/org/schabi/newpipe/player/Player.java @@ -462,9 +462,6 @@ public final class Player implements PlaybackListener, Listener { if (oldPlayerType != playerType && playQueue != null) { // If playerType changes from one to another we should reload the player // (to disable/enable video stream or to set quality) - if (playerType != PlayerType.POPUP) { - setRecovery(); - } reloadPlayQueueManager(); }