This commit is contained in:
LagradOst 2024-01-10 19:10:34 +01:00
parent 97ec98b9e2
commit 5e6272be3f
2 changed files with 11 additions and 1 deletions

View File

@ -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(
}
}
}
*/
}

View File

@ -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()