fix(library): Category collapse should trigger UI update

Fixes GH-271
This commit is contained in:
Ahmad Ansori Palembani 2024-12-01 05:48:51 +07:00
parent 19b1ba76c7
commit efea0103fe
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -815,7 +815,9 @@ class LibraryPresenter(
getLibraryManga.subscribe(),
getPreferencesFlow(),
preferences.removeArticles().changes(),
) { allCategories, libraryMangaList, prefs, removeArticles ->
preferences.collapsedCategories().changes(),
preferences.collapsedDynamicCategories().changes(),
) { allCategories, libraryMangaList, prefs, removeArticles, collapsedCategories, collapsedDynamicCategories ->
groupType = prefs.groupType
val (items, categories, hiddenItems) = if (groupType <= BY_DEFAULT || !libraryIsGrouped) {