From 65dcf89dc2912b076f16e829e5531d64fe7b48d6 Mon Sep 17 00:00:00 2001 From: gedoor Date: Sun, 27 Dec 2020 18:52:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/ui/book/cache/CacheActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/ui/book/cache/CacheActivity.kt b/app/src/main/java/io/legado/app/ui/book/cache/CacheActivity.kt index efad70917..1e417a1a0 100644 --- a/app/src/main/java/io/legado/app/ui/book/cache/CacheActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/cache/CacheActivity.kt @@ -82,7 +82,7 @@ class CacheActivity : VMBaseActivity() 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(