|
|
@ -68,8 +68,8 @@ class MainViewModel(application: Application) : BaseViewModel(application) { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Synchronized |
|
|
|
private fun updateToc() { |
|
|
|
private fun updateToc() { |
|
|
|
synchronized(this) { |
|
|
|
|
|
|
|
bookMap.forEach { bookEntry -> |
|
|
|
bookMap.forEach { bookEntry -> |
|
|
|
if (!updateList.contains(bookEntry.key)) { |
|
|
|
if (!updateList.contains(bookEntry.key)) { |
|
|
|
val book = bookEntry.value |
|
|
|
val book = bookEntry.value |
|
|
@ -108,7 +108,6 @@ class MainViewModel(application: Application) : BaseViewModel(application) { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private fun cacheBook(webBook: WebBook, book: Book) { |
|
|
|
private fun cacheBook(webBook: WebBook, book: Book) { |
|
|
|
execute { |
|
|
|
execute { |
|
|
|