mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
revert: Partially revert "refactor: Attempt 2 on getting library manga
using flow" It updates on "mark as read" from library, but didn't respond to changes outside of library page. It probably easier if I move the variable to ViewModel...
This commit is contained in:
parent
7b765a5fc2
commit
6a2704ff11
1 changed files with 2 additions and 2 deletions
|
@ -184,7 +184,7 @@ class LibraryPresenter(
|
|||
presenterScope.launch {
|
||||
getLibraryManga.subscribe().collectLatest {
|
||||
libraryManga = it.apply { if (groupType > BY_DEFAULT) { distinctBy { it.id } } }
|
||||
getLibrary()
|
||||
getLibrary(false)
|
||||
}
|
||||
}
|
||||
if (!preferences.showLibrarySearchSuggestions().isSet()) {
|
||||
|
@ -210,7 +210,7 @@ class LibraryPresenter(
|
|||
}
|
||||
|
||||
/** Get favorited manga for library and sort and filter it */
|
||||
fun getLibrary(forceFetch: Boolean = false) {
|
||||
fun getLibrary(forceFetch: Boolean = true) {
|
||||
presenterScope.launch {
|
||||
if (categories.isEmpty()) {
|
||||
val dbCategories = getCategories.await()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue