diff --git a/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt b/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt index 2b6cc9742..0944ca697 100644 --- a/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt @@ -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() }