fix removing bookmarks

This commit is contained in:
Bnyro 2022-11-18 18:30:17 +01:00
parent 7e984dd57f
commit 3afff16e30

View File

@ -136,7 +136,7 @@ class PlaylistFragment : BaseFragment() {
isBookmarked = !isBookmarked
updateBookmarkRes()
query {
if (isBookmarked) {
if (!isBookmarked) {
DatabaseHolder.Database.playlistBookmarkDao().delete(
DatabaseHolder.Database.playlistBookmarkDao().findById(playlistId!!)
)