mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-15 06:40:30 +05:30
Merge pull request #2519 from Bnyro/master
Fix that watch positions don't work for the queue
This commit is contained in:
commit
7de3642bcd
@ -877,8 +877,10 @@ class PlayerFragment : BaseFragment(), OnlinePlayerOptions {
|
|||||||
playbackState == Player.STATE_ENDED
|
playbackState == Player.STATE_ENDED
|
||||||
)
|
)
|
||||||
|
|
||||||
// save the watch position every time the state changes
|
// save the watch position to the database
|
||||||
saveWatchPosition()
|
// only called when the position is unequal to 0, otherwise it would become reset
|
||||||
|
// before the player can seek to the saved position from videos of the queue
|
||||||
|
if (exoPlayer.currentPosition != 0L) saveWatchPosition()
|
||||||
|
|
||||||
// check if video has ended, next video is available and autoplay is enabled.
|
// check if video has ended, next video is available and autoplay is enabled.
|
||||||
@Suppress("DEPRECATION")
|
@Suppress("DEPRECATION")
|
||||||
|
Loading…
Reference in New Issue
Block a user