mirror of
https://github.com/MGislv/NekoX.git
synced 2024-07-02 10:33:36 +00:00
Refine string usages
This commit is contained in:
parent
0b53321c2d
commit
721e39aa9b
|
@ -73,7 +73,7 @@ interface Translator {
|
|||
var country = to.country
|
||||
|
||||
if (language == "in") language = "id"
|
||||
if (country.toLowerCase() == "duang") country = "CN"
|
||||
if (country.lowercase() == "duang") country = "CN"
|
||||
|
||||
val provider = NekoConfig.translationProvider
|
||||
when (provider) {
|
||||
|
@ -135,7 +135,7 @@ interface Translator {
|
|||
.languages
|
||||
.map { it.pluralLangCode }
|
||||
.toSet()
|
||||
.filter { !it.toLowerCase().contains("duang") }
|
||||
.filter { !it.lowercase().contains("duang") }
|
||||
.map { it.code2Locale })
|
||||
.toTypedArray()
|
||||
|
||||
|
|
|
@ -144,7 +144,7 @@ object FileUtil {
|
|||
Build.SUPPORTED_ABIS[0]
|
||||
} else {
|
||||
Build.CPU_ABI
|
||||
}.toLowerCase()
|
||||
}.lowercase()
|
||||
|
||||
}.also {
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user