|
|
|
@ -18,8 +18,7 @@ object LocaleHelper {
|
|
|
|
|
return when (lang) {
|
|
|
|
|
SourcePresenter.LAST_USED_KEY -> context.getString(R.string.last_used_source)
|
|
|
|
|
SourcePresenter.PINNED_KEY -> context.getString(R.string.pinned_sources)
|
|
|
|
|
"" -> context.getString(R.string.other_source)
|
|
|
|
|
"other" -> context.getString(R.string.other_source)
|
|
|
|
|
"","other" -> context.getString(R.string.other_source)
|
|
|
|
|
"all" -> context.getString(R.string.all_lang)
|
|
|
|
|
else -> getDisplayName(lang)
|
|
|
|
|
}
|
|
|
|
@ -34,7 +33,6 @@ object LocaleHelper {
|
|
|
|
|
if (lang == null) {
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
val locale = if (lang.isEmpty()) {
|
|
|
|
|
LocaleListCompat.getAdjustedDefault()[0]
|
|
|
|
|
} else {
|
|
|
|
|