From d3e8c562dbd524d6bfc0ec7a22fdfb60fe6b3814 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Tue, 14 Nov 2023 13:30:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E6=9B=B4=E4=BD=8E=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E7=9A=84=E5=AE=89=E5=8D=93=E4=B8=8A=E5=90=AF=E7=94=A8=E8=B7=9F?= =?UTF-8?q?=E9=9A=8F=E7=B3=BB=E7=BB=9F=E4=BA=AE=E6=9A=97=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=EF=BC=88#317=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit cb7152409a33feae33d12627985d3577002bc5a0) --- publish/changeLog.md | 5 ++++- src/utils/tools.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/publish/changeLog.md b/publish/changeLog.md index 4a37dd9a3..0421c9694 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -15,9 +15,12 @@ - 修复主题背景覆盖不全的问题 - 修复清理缓存后查看日志时会导致APP崩溃的问题 +### 变更 + +- 在更低版本的安卓上启用跟随系统亮暗主题功能(#317) + ### 其他 - 移除所有内置源,由于收到腾讯投诉要求停止提供软件内置的连接到他们平台的在线播放及下载服务,所以从即日(2023年10月18日)起LX本身不再提供上述服务 - 更新许可协议的排版,使其看起来更加清晰明了,更新数据来源原理说明 - 更新 React native 到 v0.72.6 - diff --git a/src/utils/tools.ts b/src/utils/tools.ts index f9e3dabf3..5ed7bd72b 100644 --- a/src/utils/tools.ts +++ b/src/utils/tools.ts @@ -357,7 +357,7 @@ export const getIsSupportedAutoTheme = () => { if (isSupportedAutoTheme == null) { const osVerNum = parseInt(osVer) isSupportedAutoTheme = isAndroid - ? osVerNum >= 10 + ? osVerNum >= 5 : osVerNum >= 13 } return isSupportedAutoTheme