From c2eaa3e34b23765294d613d7b0e5ef87bc500a5c Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 19 Feb 2020 12:04:00 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=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 --- .../java/io/legado/app/ui/download/DownloadAdapter.kt | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/download/DownloadAdapter.kt b/app/src/main/java/io/legado/app/ui/download/DownloadAdapter.kt index 2fcc21a90..57cafc78a 100644 --- a/app/src/main/java/io/legado/app/ui/download/DownloadAdapter.kt +++ b/app/src/main/java/io/legado/app/ui/download/DownloadAdapter.kt @@ -10,7 +10,6 @@ import io.legado.app.data.entities.BookChapter import io.legado.app.service.help.Download import kotlinx.android.synthetic.main.item_download.view.* import org.jetbrains.anko.sdk27.listeners.onClick -import org.jetbrains.anko.toast class DownloadAdapter(context: Context, private val callBack: CallBack) : @@ -53,14 +52,7 @@ class DownloadAdapter(context: Context, private val callBack: CallBack) : } } tv_export.onClick { - getItem(holder.layoutPosition)?.let { - val cacheSize = cacheChapters[it.bookUrl]?.size ?: 0 - if (cacheSize < it.totalChapterNum) { - context.toast("未下载完成") - } else { - callBack.export(holder.layoutPosition) - } - } + callBack.export(holder.layoutPosition) } } }