From 827bbe8d6e81de08d41184f164d168a8675e9d84 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Mon, 12 Jun 2023 20:11:26 +0200 Subject: [PATCH] Fix watch positions while playing a playlist or using autoplay --- .../java/com/github/libretube/ui/fragments/PlayerFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt b/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt index f7095bd76c..109b6edabe 100644 --- a/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt @@ -642,7 +642,7 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions { // save the watch position if video isn't finished and option enabled private fun saveWatchPosition() { - if (!this::exoPlayer.isInitialized || !PlayerHelper.watchPositionsVideo + if (!this::exoPlayer.isInitialized || !PlayerHelper.watchPositionsVideo || transitioning || exoPlayer.duration == C.TIME_UNSET || exoPlayer.currentPosition in listOf( 0L, C.TIME_UNSET