More slight edits

This commit is contained in:
Bradlee Speice 2014-11-22 00:57:52 -05:00
parent fc38192dba
commit 81ebeb43b3
2 changed files with 3 additions and 2 deletions

View File

@ -63,8 +63,8 @@ class BookManager(private val installedBooks: Books, val rM: RefreshManager) :
fun downloadBook(b: Book) {
// First, look up where the Book came from
Observable.just(rM installerFromBook b)
.subscribeOn(Schedulers.io())
.subscribe { it.toBlocking().first() install b }
.observeOn(Schedulers.io())
.subscribe { it subscribe { it install b } }
downloadEvents onNext DLProgressEvent(DLProgressEvent.PROGRESS_BEGINNING, b)
}

View File

@ -36,6 +36,7 @@ class LocaleManager(val rM: RefreshManager) {
}
// TODO: Fix the actual Language implementation - Pull Request?
// Can't use a data class because we need to get the name of the language
private class FixedLanguage(language: Language?) :
Language(language?.getCode() ?: Language.UNKNOWN_LANG_CODE) {
override fun hashCode() = this.getName().hashCode()