Fix the option to disable watch positions

This commit is contained in:
Bnyro 2022-12-06 11:26:27 +01:00
parent 2642e5f3d8
commit eeb87c05d8

View File

@ -880,10 +880,7 @@ class PlayerFragment : BaseFragment(), OnlinePlayerOptions {
// save the watch position when paused // save the watch position when paused
if (playbackState == PlaybackState.STATE_PAUSED) { if (playbackState == PlaybackState.STATE_PAUSED) {
val watchPosition = WatchPosition(videoId!!, exoPlayer.currentPosition) saveWatchPosition()
query {
Database.watchPositionDao().insertAll(watchPosition)
}
disableAutoPiP() disableAutoPiP()
} }