Actually Fix #6341 (#6392)

This commit is contained in:
FourTOne5 2021-12-27 02:45:29 +06:00 committed by GitHub
parent 2db2b7348d
commit 800583b5e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -242,10 +242,10 @@ class SettingsLibraryController : SettingsController() {
.sortedBy { it.order } .sortedBy { it.order }
val includedItemsText = if (includedCategories.isEmpty()) { val includedItemsText = if (includedCategories.isEmpty()) {
if (excludedCategories.size == allCategories.size) context.getString(R.string.none) context.getString(R.string.none)
else context.getString(R.string.all)
} else { } 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()) { val excludedItemsText = if (excludedCategories.isEmpty()) {