From 3afff16e301bb5d971bc53efbb32c85974358b6c Mon Sep 17 00:00:00 2001 From: Bnyro Date: Fri, 18 Nov 2022 18:30:17 +0100 Subject: [PATCH] fix removing bookmarks --- .../java/com/github/libretube/ui/fragments/PlaylistFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/github/libretube/ui/fragments/PlaylistFragment.kt b/app/src/main/java/com/github/libretube/ui/fragments/PlaylistFragment.kt index dd2c2fbe3..c72388081 100644 --- a/app/src/main/java/com/github/libretube/ui/fragments/PlaylistFragment.kt +++ b/app/src/main/java/com/github/libretube/ui/fragments/PlaylistFragment.kt @@ -136,7 +136,7 @@ class PlaylistFragment : BaseFragment() { isBookmarked = !isBookmarked updateBookmarkRes() query { - if (isBookmarked) { + if (!isBookmarked) { DatabaseHolder.Database.playlistBookmarkDao().delete( DatabaseHolder.Database.playlistBookmarkDao().findById(playlistId!!) )