Don't count "other" as a language. (#5901)

This commit is contained in:
FourTOne5 2021-09-14 01:05:12 +06:00 committed by GitHub
parent 7c72d6cb7c
commit 2c495c4119
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -258,7 +258,7 @@ class MangaInfoHeaderAdapter(
with(binding.mangaSource) {
if (mangaSource != null) {
val enabledLanguages = preferences.enabledLanguages().get()
.filterNot { it == "all" }
.filterNot { it in listOf("all", "other") }
val hasOneActiveLanguages = enabledLanguages.size == 1
val isInEnabledLanguages = source.lang in enabledLanguages