Merge remote-tracking branch 'origin/master'
This commit is contained in:
+2
-3
@@ -137,11 +137,10 @@ dependencies {
|
|||||||
androidTestImplementation('androidx.test.espresso:espresso-core:3.4.0')
|
androidTestImplementation('androidx.test.espresso:espresso-core:3.4.0')
|
||||||
implementation('androidx.multidex:multidex:2.0.1')
|
implementation('androidx.multidex:multidex:2.0.1')
|
||||||
//kotlin
|
//kotlin
|
||||||
//noinspection GradleDependency
|
//noinspection GradleDependency,DifferentStdlibGradleVersion
|
||||||
//noinspection DifferentStdlibGradleVersion
|
|
||||||
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version")
|
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version")
|
||||||
//Kotlin反射
|
//Kotlin反射
|
||||||
//noinspection GradleDependency
|
//noinspection GradleDependency,DifferentStdlibGradleVersion
|
||||||
implementation("org.jetbrains.kotlin:kotlin-reflect:$kotlin_version")
|
implementation("org.jetbrains.kotlin:kotlin-reflect:$kotlin_version")
|
||||||
//协程
|
//协程
|
||||||
def coroutines_version = '1.6.4'
|
def coroutines_version = '1.6.4'
|
||||||
|
|||||||
@@ -11,6 +11,16 @@
|
|||||||
* 正文出现缺字漏字、内容缺失、排版错乱等情况,有可能是净化规则或简繁转换出现问题。
|
* 正文出现缺字漏字、内容缺失、排版错乱等情况,有可能是净化规则或简繁转换出现问题。
|
||||||
* 漫画源看书显示乱码,**阅读与其他软件的源并不通用**,请导入阅读的支持的漫画源!
|
* 漫画源看书显示乱码,**阅读与其他软件的源并不通用**,请导入阅读的支持的漫画源!
|
||||||
|
|
||||||
|
**2022/09/19**
|
||||||
|
|
||||||
|
* 发现为空时不校验
|
||||||
|
* 订阅添加刷新分类功能,菜单中
|
||||||
|
* 修复webView因为不支持新夜间模式导致的崩溃
|
||||||
|
* 修复阅读背景分主题设置bug by 821938089
|
||||||
|
* 修复朗读高亮位置不对的问题 by 821938089
|
||||||
|
* 添加忽略音频焦点设置 by 821938089
|
||||||
|
* 优化web端写源 by Xwite
|
||||||
|
|
||||||
**2022/09/17**
|
**2022/09/17**
|
||||||
|
|
||||||
* SDK暂时退回32,解决webView夜间模式不起作用的问题
|
* SDK暂时退回32,解决webView夜间模式不起作用的问题
|
||||||
|
|||||||
@@ -72,6 +72,7 @@ class CheckSourceService : BaseService() {
|
|||||||
IntentAction.start -> intent.getStringArrayListExtra("selectIds")?.let {
|
IntentAction.start -> intent.getStringArrayListExtra("selectIds")?.let {
|
||||||
check(it)
|
check(it)
|
||||||
}
|
}
|
||||||
|
|
||||||
IntentAction.resume -> upNotification()
|
IntentAction.resume -> upNotification()
|
||||||
else -> stopSelf()
|
else -> stopSelf()
|
||||||
}
|
}
|
||||||
@@ -154,7 +155,7 @@ class CheckSourceService : BaseService() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//校验发现书籍
|
//校验发现书籍
|
||||||
if (CheckSource.checkDiscovery) {
|
if (CheckSource.checkDiscovery && !source.exploreUrl.isNullOrBlank()) {
|
||||||
val exs = source.exploreKinds()
|
val exs = source.exploreKinds()
|
||||||
var url: String? = null
|
var url: String? = null
|
||||||
for (ex in exs) {
|
for (ex in exs) {
|
||||||
|
|||||||
@@ -13,8 +13,14 @@ import io.legado.app.help.config.AppConfig
|
|||||||
@SuppressLint("RequiresFeature")
|
@SuppressLint("RequiresFeature")
|
||||||
fun WebSettings.setDarkeningAllowed(allow: Boolean) {
|
fun WebSettings.setDarkeningAllowed(allow: Boolean) {
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
||||||
WebSettingsCompat.setAlgorithmicDarkeningAllowed(this, allow)
|
kotlin.runCatching {
|
||||||
} else if (AppConfig.isNightTheme) {
|
WebSettingsCompat.setAlgorithmicDarkeningAllowed(this, allow)
|
||||||
|
return
|
||||||
|
}.onFailure {
|
||||||
|
it.printOnDebug()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (AppConfig.isNightTheme) {
|
||||||
if (WebViewFeature.isFeatureSupported(WebViewFeature.FORCE_DARK_STRATEGY)) {
|
if (WebViewFeature.isFeatureSupported(WebViewFeature.FORCE_DARK_STRATEGY)) {
|
||||||
@Suppress("DEPRECATION")
|
@Suppress("DEPRECATION")
|
||||||
WebSettingsCompat.setForceDarkStrategy(
|
WebSettingsCompat.setForceDarkStrategy(
|
||||||
|
|||||||
Reference in New Issue
Block a user