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)
|
viewModel.click(callback)
|
||||||
return@HomeChildItemAdapter
|
return@HomeChildItemAdapter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
(callback.view.context?.getActivity() as? MainActivity)?.loadPopup(callback.card, load = false)
|
||||||
|
/*
|
||||||
callback.view.context?.getActivity()?.showOptionSelectStringRes(
|
callback.view.context?.getActivity()?.showOptionSelectStringRes(
|
||||||
callback.view,
|
callback.view,
|
||||||
callback.card.posterUrl,
|
callback.card.posterUrl,
|
||||||
|
@ -261,6 +264,7 @@ class HomeParentItemAdapterPreview(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1006,6 +1006,7 @@ class ResultViewModel2 : ViewModel() {
|
||||||
removeFavoritesData(currentId)
|
removeFavoritesData(currentId)
|
||||||
statusChangedCallback?.invoke(false)
|
statusChangedCallback?.invoke(false)
|
||||||
_favoriteStatus.postValue(false)
|
_favoriteStatus.postValue(false)
|
||||||
|
MainActivity.reloadLibraryEvent(true)
|
||||||
} else {
|
} else {
|
||||||
checkAndWarnDuplicates(
|
checkAndWarnDuplicates(
|
||||||
context,
|
context,
|
||||||
|
@ -1050,8 +1051,8 @@ class ResultViewModel2 : ViewModel() {
|
||||||
)
|
)
|
||||||
|
|
||||||
_favoriteStatus.postValue(true)
|
_favoriteStatus.postValue(true)
|
||||||
|
|
||||||
statusChangedCallback?.invoke(true)
|
statusChangedCallback?.invoke(true)
|
||||||
|
MainActivity.reloadLibraryEvent(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2604,6 +2605,11 @@ class ResultViewModel2 : ViewModel() {
|
||||||
this.rating = searchResponse.personalRating?.times(100) ?: searchResponse.rating
|
this.rating = searchResponse.personalRating?.times(100) ?: searchResponse.rating
|
||||||
this.tags = searchResponse.tags
|
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()
|
val mainId = searchResponse.id ?: response.getId()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue