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 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?
Language(language?.getCode() ?: Language.UNKNOWN_LANG_CODE) { private class FixedLanguage(language: Language?) :
override fun hashCode() = this.getName().hashCode() Language(language?.getCode() ?: Language.UNKNOWN_LANG_CODE) {
override fun hashCode() = this.getName().hashCode()
}
} }