mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-05 18:45:07 +01:00
Fix weird behaviour in library when switching display mode (#5640)
This commit is contained in:
parent
bcaa9674fe
commit
fd45de5c58
@ -196,7 +196,12 @@ class LibraryController(
|
||||
when (group) {
|
||||
is LibrarySettingsSheet.Filter.FilterGroup -> onFilterChanged()
|
||||
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.TabsGroup -> onTabsSettingsChanged()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user