Actually Fix #6341 (#6392)

(cherry picked from commit 800583b5e253366d701f3b6cd599022accf4016f)
This commit is contained in:
FourTOne5 2021-12-27 02:45:29 +06:00 committed by Jobobby04
parent 4a2e8806c1
commit 282abf12c9

View File

@ -268,10 +268,10 @@ class SettingsLibraryController : SettingsController() {
.sortedBy { it.order }
val includedItemsText = if (includedCategories.isEmpty()) {
if (excludedCategories.size == allCategories.size) context.getString(R.string.none)
else context.getString(R.string.all)
context.getString(R.string.none)
} else {
includedCategories.joinToString { it.name }
if (includedCategories.size == allCategories.size) context.getString(R.string.all)
else includedCategories.joinToString { it.name }
}
val excludedItemsText = if (excludedCategories.isEmpty()) {