feat: 刷新时只刷新当前书架

pull/248/head
gedoor 5 years ago
parent 5ab04dd0c2
commit 67f76f8a93
  1. 6
      app/src/main/java/io/legado/app/ui/main/MainViewModel.kt

@ -18,6 +18,12 @@ import kotlinx.coroutines.delay
class MainViewModel(application: Application) : BaseViewModel(application) { class MainViewModel(application: Application) : BaseViewModel(application) {
val updateList = hashSetOf<String>() val updateList = hashSetOf<String>()
fun upChapterList() {
execute {
upChapterList(App.db.bookDao().hasUpdateBooks)
}
}
fun upChapterList(books: List<Book>) { fun upChapterList(books: List<Book>) {
execute { execute {
books.forEach { book -> books.forEach { book ->

Loading…
Cancel
Save