mirror of
https://github.com/jellyfin/jellyfin-androidtv.git
synced 2024-11-27 08:00:28 +00:00
Fix toggling favorites in ItemListFragment
This commit is contained in:
parent
299751156d
commit
a4ec607543
@ -89,7 +89,7 @@ fun ItemListFragment.toggleFavorite(item: BaseItemDto, callback: (item: BaseItem
|
||||
lifecycleScope.launch {
|
||||
val userData = itemMutationRepository.setFavorite(
|
||||
item = item.id,
|
||||
favorite = item.userData?.isFavorite ?: true
|
||||
favorite = !(item.userData?.isFavorite ?: false)
|
||||
)
|
||||
callback(item.copy(userData = userData))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user