mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
fix
This commit is contained in:
parent
97ec98b9e2
commit
5e6272be3f
2 changed files with 11 additions and 1 deletions
|
@ -216,6 +216,9 @@ class HomeParentItemAdapterPreview(
|
|||
viewModel.click(callback)
|
||||
return@HomeChildItemAdapter
|
||||
}
|
||||
|
||||
(callback.view.context?.getActivity() as? MainActivity)?.loadPopup(callback.card, load = false)
|
||||
/*
|
||||
callback.view.context?.getActivity()?.showOptionSelectStringRes(
|
||||
callback.view,
|
||||
callback.card.posterUrl,
|
||||
|
@ -261,6 +264,7 @@ class HomeParentItemAdapterPreview(
|
|||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1006,6 +1006,7 @@ class ResultViewModel2 : ViewModel() {
|
|||
removeFavoritesData(currentId)
|
||||
statusChangedCallback?.invoke(false)
|
||||
_favoriteStatus.postValue(false)
|
||||
MainActivity.reloadLibraryEvent(true)
|
||||
} else {
|
||||
checkAndWarnDuplicates(
|
||||
context,
|
||||
|
@ -1050,8 +1051,8 @@ class ResultViewModel2 : ViewModel() {
|
|||
)
|
||||
|
||||
_favoriteStatus.postValue(true)
|
||||
|
||||
statusChangedCallback?.invoke(true)
|
||||
MainActivity.reloadLibraryEvent(true)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2604,6 +2605,11 @@ class ResultViewModel2 : ViewModel() {
|
|||
this.rating = searchResponse.personalRating?.times(100) ?: searchResponse.rating
|
||||
this.tags = searchResponse.tags
|
||||
}
|
||||
if (searchResponse is DataStoreHelper.BookmarkedData) {
|
||||
this.plot = searchResponse.plot
|
||||
this.rating = searchResponse.rating
|
||||
this.tags = searchResponse.tags
|
||||
}
|
||||
}
|
||||
val mainId = searchResponse.id ?: response.getId()
|
||||
|
||||
|
|
Loading…
Reference in a new issue