mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 23:41:50 +01:00
linting
This commit is contained in:
parent
30250f2f82
commit
359ed5a8cd
@ -122,8 +122,7 @@ class SourcePresenter(
|
|||||||
val localSource = sourceManager.get(LocalSource.ID)
|
val localSource = sourceManager.get(LocalSource.ID)
|
||||||
return sourceManager.getCatalogueSources()
|
return sourceManager.getCatalogueSources()
|
||||||
.filter { it.lang in languages }
|
.filter { it.lang in languages }
|
||||||
.filterNot { it.id.toString() in disabledSourceIds }
|
.filterNot { it.id.toString() in disabledSourceIds + localSource?.id.toString() }
|
||||||
.filterNot { it.id.toString() == localSource.toString() }
|
|
||||||
.sortedBy { "(${it.lang}) ${it.name.lowercase()}" } +
|
.sortedBy { "(${it.lang}) ${it.name.lowercase()}" } +
|
||||||
localSource as LocalSource
|
localSource as LocalSource
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,7 @@ object LocaleHelper {
|
|||||||
return when (lang) {
|
return when (lang) {
|
||||||
SourcePresenter.LAST_USED_KEY -> context.getString(R.string.last_used_source)
|
SourcePresenter.LAST_USED_KEY -> context.getString(R.string.last_used_source)
|
||||||
SourcePresenter.PINNED_KEY -> context.getString(R.string.pinned_sources)
|
SourcePresenter.PINNED_KEY -> context.getString(R.string.pinned_sources)
|
||||||
"","other" -> context.getString(R.string.other_source)
|
"", "other" -> context.getString(R.string.other_source)
|
||||||
"all" -> context.getString(R.string.all_lang)
|
"all" -> context.getString(R.string.all_lang)
|
||||||
else -> getDisplayName(lang)
|
else -> getDisplayName(lang)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user