mirror of
				https://github.com/MinimalBible/MinimalBible
				synced 2025-11-03 18:10:27 -05:00 
			
		
		
		
	More slight edits
This commit is contained in:
		@ -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()
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user