mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
Fix the option to disable watch positions
This commit is contained in:
parent
2642e5f3d8
commit
eeb87c05d8
@ -880,10 +880,7 @@ class PlayerFragment : BaseFragment(), OnlinePlayerOptions {
|
||||
|
||||
// save the watch position when paused
|
||||
if (playbackState == PlaybackState.STATE_PAUSED) {
|
||||
val watchPosition = WatchPosition(videoId!!, exoPlayer.currentPosition)
|
||||
query {
|
||||
Database.watchPositionDao().insertAll(watchPosition)
|
||||
}
|
||||
saveWatchPosition()
|
||||
disableAutoPiP()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user