优化代码

pull/768/head 3.20.122715
gedoor 4 years ago
parent a33e7c3aab
commit 65dcf89dc2
  1. 2
      app/src/main/java/io/legado/app/ui/book/cache/CacheActivity.kt

@ -82,7 +82,7 @@ class CacheActivity : VMBaseActivity<ActivityCacheBookBinding, CacheViewModel>()
override fun onCompatOptionsItemSelected(item: MenuItem): Boolean {
when (item.itemId) {
R.id.menu_download -> launch(IO) {
R.id.menu_download -> {
if (adapter.downloadMap.isNullOrEmpty()) {
adapter.getItems().forEach { book ->
CacheBook.start(

Loading…
Cancel
Save