From 18fa4595470fd9672267a3799619d359ebf6d48a Mon Sep 17 00:00:00 2001 From: gedoor Date: Wed, 24 Feb 2021 14:17:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/help/coroutine/Coroutine.kt | 4 +++- app/src/main/res/layout/dialog_read_padding.xml | 2 +- 2 files changed, 4 insertions(+), 2 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 a31c9d1e0..6cb5892b5 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 @@ -197,7 +197,9 @@ class Coroutine( return withContext(scope.coroutineContext.plus(context)) { if (timeMillis > 0L) withTimeout(timeMillis) { block() - } else block() + } else { + block() + } } } diff --git a/app/src/main/res/layout/dialog_read_padding.xml b/app/src/main/res/layout/dialog_read_padding.xml index c9be863dd..37153a1f1 100644 --- a/app/src/main/res/layout/dialog_read_padding.xml +++ b/app/src/main/res/layout/dialog_read_padding.xml @@ -84,7 +84,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" app:title="@string/padding_top" - app:max="100" /> + app:max="200" />