mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
fix crash at playlist page
This commit is contained in:
parent
b014050d06
commit
654ec96a5e
@ -226,8 +226,10 @@ class PlaylistFragment : BaseFragment() {
|
||||
}
|
||||
|
||||
// update the playlist thumbnail if bookmarked
|
||||
val playlistBookmark = DatabaseHolder.Database.playlistBookmarkDao().getAll()
|
||||
.firstOrNull { it.playlistId == playlistId }
|
||||
val playlistBookmark = awaitQuery {
|
||||
DatabaseHolder.Database.playlistBookmarkDao().getAll()
|
||||
.firstOrNull { it.playlistId == playlistId }
|
||||
}
|
||||
playlistBookmark?.let {
|
||||
if (playlistBookmark.thumbnailUrl != response.thumbnailUrl) {
|
||||
playlistBookmark.thumbnailUrl = response.thumbnailUrl
|
||||
|
Loading…
x
Reference in New Issue
Block a user