mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
Merge pull request #7242 from libre-tube/fix-watch-positions-disabled
fix: watch position saved on video end even if disabled
This commit is contained in:
commit
c28fee67e4
@ -97,10 +97,10 @@ abstract class AbstractPlayerService : MediaLibraryService(), MediaLibrarySessio
|
|||||||
|
|
||||||
when (playbackState) {
|
when (playbackState) {
|
||||||
Player.STATE_ENDED -> {
|
Player.STATE_ENDED -> {
|
||||||
exoPlayer?.let { PlayerHelper.saveWatchPosition(it, videoId) }
|
saveWatchPosition()
|
||||||
}
|
}
|
||||||
Player.STATE_READY -> {
|
Player.STATE_READY -> {
|
||||||
isTransitioning = false
|
isTransitioning = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user