mirror of
https://github.com/MinimalBible/MinimalBible
synced 2024-12-22 14:48:23 -05:00
More slight edits
This commit is contained in:
parent
fc38192dba
commit
81ebeb43b3
@ -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)
|
||||
}
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user