pull/2533/head
kunfei 2 years ago
parent dbdabcbbb7
commit eb8364a4b5
  1. 3
      app/src/main/java/io/legado/app/ui/book/cache/CacheViewModel.kt

@ -13,6 +13,7 @@ import com.script.SimpleBindings
import io.legado.app.R
import io.legado.app.base.BaseViewModel
import io.legado.app.constant.AppConst
import io.legado.app.constant.AppLog
import io.legado.app.constant.AppPattern
import io.legado.app.data.appDb
import io.legado.app.data.entities.Book
@ -116,7 +117,7 @@ class CacheViewModel(application: Application) : BaseViewModel(application) {
exportProgress.remove(book.bookUrl)
exportMsg[book.bookUrl] = it.localizedMessage ?: "ERROR"
upAdapterLiveData.postValue(book.bookUrl)
it.printOnDebug()
AppLog.put("导出书籍<${book.name}>出错", it)
}.onSuccess {
exportProgress.remove(book.bookUrl)
exportMsg[book.bookUrl] = context.getString(R.string.export_success)

Loading…
Cancel
Save