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 @@