mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 16:30:31 +05:30
Merge pull request #3997 from Bnyro/master
Fix watch positions while playing a playlist or using autoplay
This commit is contained in:
commit
2aec2c45b8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user