Search algorithm improved

Language settings in default tag fixed
This commit is contained in:
tom5079
2019-07-03 19:40:19 +09:00
parent bd4b61d7ac
commit 7e87bb6838
6 changed files with 152 additions and 85 deletions

View File

@@ -222,14 +222,14 @@ class SettingsActivity : AppCompatActivity() {
addAll(languages.values)
}
)
if (tags.any { it.area == "language" }) {
if (tags.any { it.area == "language" && !it.isNegative }) {
val tag = languages[tags.first { it.area == "language" }.tag]
if (tag != null) {
setSelection(
@Suppress("UNCHECKED_CAST")
(adapter as ArrayAdapter<String>).getPosition(tag)
)
tags.removeByArea("language")
tags.removeByArea("language", false)
}
}
}