Fix per-category sort/display affecting the wrong category

(cherry picked from commit bd47eafeecc837f833a0c370372dd6d5edb62130)

# Conflicts:
#	app/src/main/java/eu/kanade/tachiyomi/ui/library/LibrarySettingsScreenModel.kt
This commit is contained in:
arkon
2023-02-23 13:54:08 -05:00
committed by Jobobby04
parent 654e894aee
commit 563063a6fd
6 changed files with 49 additions and 45 deletions
@@ -4,4 +4,13 @@ enum class TriStateFilter {
DISABLED, // Disable filter
ENABLED_IS, // Enabled with "is" filter
ENABLED_NOT, // Enabled with "not" filter
;
fun next(): TriStateFilter {
return when (this) {
DISABLED -> ENABLED_IS
ENABLED_IS -> ENABLED_NOT
ENABLED_NOT -> DISABLED
}
}
}