Slight refactor, FixedLanguage should be private

This commit is contained in:
Bradlee Speice 2014-11-08 00:29:10 -05:00
parent cc15e9219d
commit 1ea27f50b9

View File

@ -23,9 +23,10 @@ class LocaleManager(val rM: RefreshManager) {
else
left.getName().compareTo(right.getName())
}.toBlocking().first()
}
class FixedLanguage(language: Language?) :
Language(language?.getCode() ?: Language.UNKNOWN_LANG_CODE) {
override fun hashCode() = this.getName().hashCode()
// TODO: Fix the actual Language implementation - Pull Request?
private class FixedLanguage(language: Language?) :
Language(language?.getCode() ?: Language.UNKNOWN_LANG_CODE) {
override fun hashCode() = this.getName().hashCode()
}
}