From 73afb399ffdad788d046b69f40962ba7b5c13c43 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 19 Sep 2022 20:10:49 +0800 Subject: [PATCH 1/4] =?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/build.gradle | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 78fa06eb0..a504ed40d 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -137,11 +137,10 @@ dependencies { androidTestImplementation('androidx.test.espresso:espresso-core:3.4.0') implementation('androidx.multidex:multidex:2.0.1') //kotlin - //noinspection GradleDependency - //noinspection DifferentStdlibGradleVersion + //noinspection GradleDependency,DifferentStdlibGradleVersion implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version") //Kotlin反射 - //noinspection GradleDependency + //noinspection GradleDependency,DifferentStdlibGradleVersion implementation("org.jetbrains.kotlin:kotlin-reflect:$kotlin_version") //协程 def coroutines_version = '1.6.4' From 515088b67c4bae3514371ef43616590b634e95d8 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 19 Sep 2022 20:19:57 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/utils/WebSettingsExtensions.kt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/utils/WebSettingsExtensions.kt b/app/src/main/java/io/legado/app/utils/WebSettingsExtensions.kt index 980bd294d..7c0623f91 100644 --- a/app/src/main/java/io/legado/app/utils/WebSettingsExtensions.kt +++ b/app/src/main/java/io/legado/app/utils/WebSettingsExtensions.kt @@ -13,8 +13,14 @@ import io.legado.app.help.config.AppConfig @SuppressLint("RequiresFeature") fun WebSettings.setDarkeningAllowed(allow: Boolean) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { - WebSettingsCompat.setAlgorithmicDarkeningAllowed(this, allow) - } else if (AppConfig.isNightTheme) { + kotlin.runCatching { + WebSettingsCompat.setAlgorithmicDarkeningAllowed(this, allow) + return + }.onFailure { + it.printOnDebug() + } + } + if (AppConfig.isNightTheme) { if (WebViewFeature.isFeatureSupported(WebViewFeature.FORCE_DARK_STRATEGY)) { @Suppress("DEPRECATION") WebSettingsCompat.setForceDarkStrategy( From dee58913dd6b9e016182c1fb20b84ed8eb22a5c2 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 19 Sep 2022 20:30:50 +0800 Subject: [PATCH 3/4] =?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/assets/updateLog.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/src/main/assets/updateLog.md b/app/src/main/assets/updateLog.md index cb5a2f71b..0f6c3ecfc 100644 --- a/app/src/main/assets/updateLog.md +++ b/app/src/main/assets/updateLog.md @@ -11,6 +11,15 @@ * 正文出现缺字漏字、内容缺失、排版错乱等情况,有可能是净化规则或简繁转换出现问题。 * 漫画源看书显示乱码,**阅读与其他软件的源并不通用**,请导入阅读的支持的漫画源! +**2022/09/19** + +* 订阅添加刷新分类功能,菜单中 +* 修复webView因为不支持新夜间模式导致的崩溃 +* 修复阅读背景分主题设置bug by 821938089 +* 修复朗读高亮位置不对的问题 by 821938089 +* 添加忽略音频焦点设置 by 821938089 +* 优化web端写源 by Xwite + **2022/09/17** * SDK暂时退回32,解决webView夜间模式不起作用的问题 From 84ccbe22b1fc7f125feff926d4e7b5e2af508994 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 19 Sep 2022 20:41:36 +0800 Subject: [PATCH 4/4] =?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/assets/updateLog.md | 1 + app/src/main/java/io/legado/app/service/CheckSourceService.kt | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/assets/updateLog.md b/app/src/main/assets/updateLog.md index 0f6c3ecfc..548acdae2 100644 --- a/app/src/main/assets/updateLog.md +++ b/app/src/main/assets/updateLog.md @@ -13,6 +13,7 @@ **2022/09/19** +* 发现为空时不校验 * 订阅添加刷新分类功能,菜单中 * 修复webView因为不支持新夜间模式导致的崩溃 * 修复阅读背景分主题设置bug by 821938089 diff --git a/app/src/main/java/io/legado/app/service/CheckSourceService.kt b/app/src/main/java/io/legado/app/service/CheckSourceService.kt index e54012d9d..dda58ba7f 100644 --- a/app/src/main/java/io/legado/app/service/CheckSourceService.kt +++ b/app/src/main/java/io/legado/app/service/CheckSourceService.kt @@ -72,6 +72,7 @@ class CheckSourceService : BaseService() { IntentAction.start -> intent.getStringArrayListExtra("selectIds")?.let { check(it) } + IntentAction.resume -> upNotification() else -> stopSelf() } @@ -154,7 +155,7 @@ class CheckSourceService : BaseService() { } } //校验发现书籍 - if (CheckSource.checkDiscovery) { + if (CheckSource.checkDiscovery && !source.exploreUrl.isNullOrBlank()) { val exs = source.exploreKinds() var url: String? = null for (ex in exs) {