mirror of
https://github.com/MinimalBible/MinimalBible
synced 2024-11-24 17:08:18 -05:00
Slight refactor, FixedLanguage should be private
This commit is contained in:
parent
cc15e9219d
commit
1ea27f50b9
@ -23,9 +23,10 @@ class LocaleManager(val rM: RefreshManager) {
|
|||||||
else
|
else
|
||||||
left.getName().compareTo(right.getName())
|
left.getName().compareTo(right.getName())
|
||||||
}.toBlocking().first()
|
}.toBlocking().first()
|
||||||
}
|
|
||||||
|
|
||||||
class FixedLanguage(language: Language?) :
|
// TODO: Fix the actual Language implementation - Pull Request?
|
||||||
|
private class FixedLanguage(language: Language?) :
|
||||||
Language(language?.getCode() ?: Language.UNKNOWN_LANG_CODE) {
|
Language(language?.getCode() ?: Language.UNKNOWN_LANG_CODE) {
|
||||||
override fun hashCode() = this.getName().hashCode()
|
override fun hashCode() = this.getName().hashCode()
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user