From eeb87c05d8827346a058209560eec40f16f635fd Mon Sep 17 00:00:00 2001 From: Bnyro Date: Tue, 6 Dec 2022 11:26:27 +0100 Subject: [PATCH] Fix the option to disable watch positions --- .../java/com/github/libretube/ui/fragments/PlayerFragment.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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() }