From a4d60b4abe50da635266a77ab2522742ac0e1847 Mon Sep 17 00:00:00 2001 From: Administrator <1760316362@qq.com> Date: Tue, 6 Aug 2019 16:06:39 +0800 Subject: [PATCH] update --- .../main/java/io/legado/app/help/coroutine/Coroutine.kt | 3 +-- app/src/main/res/layout/activity_read.xml | 8 +------- app/src/main/res/layout/page_view.xml | 1 + 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/io/legado/app/help/coroutine/Coroutine.kt b/app/src/main/java/io/legado/app/help/coroutine/Coroutine.kt index f74d880b3..9013fc266 100644 --- a/app/src/main/java/io/legado/app/help/coroutine/Coroutine.kt +++ b/app/src/main/java/io/legado/app/help/coroutine/Coroutine.kt @@ -35,7 +35,7 @@ class Coroutine() { get() = job?.isCancelled ?: false val isActive: Boolean - get() = job?.isActive ?: false + get() = job?.isActive ?: true val isCompleted: Boolean get() = job?.isCompleted ?: false @@ -119,7 +119,6 @@ class Coroutine() { //取消当前任务 fun cancel(cause: CancellationException? = null) { - job?.cancelChildren(cause) job?.cancel(cause) } diff --git a/app/src/main/res/layout/activity_read.xml b/app/src/main/res/layout/activity_read.xml index 72ce083ea..1a16d9005 100644 --- a/app/src/main/res/layout/activity_read.xml +++ b/app/src/main/res/layout/activity_read.xml @@ -6,12 +6,6 @@ + android:layout_height="match_parent"/> \ No newline at end of file diff --git a/app/src/main/res/layout/page_view.xml b/app/src/main/res/layout/page_view.xml index d0c97cfce..fa67d4f81 100644 --- a/app/src/main/res/layout/page_view.xml +++ b/app/src/main/res/layout/page_view.xml @@ -16,6 +16,7 @@