mirror of
https://github.com/aniyomiorg/aniyomi.git
synced 2024-11-28 09:15:12 +03:00
Fix weird behaviour in library when switching display mode (#5640)
This commit is contained in:
parent
bcaa9674fe
commit
fd45de5c58
1 changed files with 6 additions and 1 deletions
|
@ -196,7 +196,12 @@ class LibraryController(
|
||||||
when (group) {
|
when (group) {
|
||||||
is LibrarySettingsSheet.Filter.FilterGroup -> onFilterChanged()
|
is LibrarySettingsSheet.Filter.FilterGroup -> onFilterChanged()
|
||||||
is LibrarySettingsSheet.Sort.SortGroup -> onSortChanged()
|
is LibrarySettingsSheet.Sort.SortGroup -> onSortChanged()
|
||||||
is LibrarySettingsSheet.Display.DisplayGroup -> reattachAdapter()
|
is LibrarySettingsSheet.Display.DisplayGroup -> {
|
||||||
|
if (!preferences.categorisedDisplaySettings().get() || activeCategory == 0) {
|
||||||
|
// Reattach adapter when flow preference change
|
||||||
|
reattachAdapter()
|
||||||
|
}
|
||||||
|
}
|
||||||
is LibrarySettingsSheet.Display.BadgeGroup -> onBadgeSettingChanged()
|
is LibrarySettingsSheet.Display.BadgeGroup -> onBadgeSettingChanged()
|
||||||
is LibrarySettingsSheet.Display.TabsGroup -> onTabsSettingsChanged()
|
is LibrarySettingsSheet.Display.TabsGroup -> onTabsSettingsChanged()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue