mirror of
https://github.com/MinimalBible/MinimalBible
synced 2024-11-22 07:58:20 -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) {
|
fun downloadBook(b: Book) {
|
||||||
// First, look up where the Book came from
|
// First, look up where the Book came from
|
||||||
Observable.just(rM installerFromBook b)
|
Observable.just(rM installerFromBook b)
|
||||||
.subscribeOn(Schedulers.io())
|
.observeOn(Schedulers.io())
|
||||||
.subscribe { it.toBlocking().first() install b }
|
.subscribe { it subscribe { it install b } }
|
||||||
|
|
||||||
downloadEvents onNext DLProgressEvent(DLProgressEvent.PROGRESS_BEGINNING, 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?
|
// 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?) :
|
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