From 99e4961bbe4b34cc1cdbdea2b4ba7691fb6221c8 Mon Sep 17 00:00:00 2001 From: HapeLee <63206378+HapeLee@users.noreply.github.com> Date: Fri, 19 Jun 2026 00:14:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E9=98=85=E8=AF=BB=E8=83=8C=E6=99=AF=E9=85=8D=E7=BD=AE=E6=97=B6?= =?UTF-8?q?=E9=A2=9C=E8=89=B2=E5=80=BC=E6=A0=A1=E9=AA=8C=E9=94=99=E4=BD=8D?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E5=B4=A9=E6=BA=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/legado/app/data/repository/ReadStyleRepository.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/data/repository/ReadStyleRepository.kt b/app/src/main/java/io/legado/app/data/repository/ReadStyleRepository.kt index 3e37219ee..87828c5be 100644 --- a/app/src/main/java/io/legado/app/data/repository/ReadStyleRepository.kt +++ b/app/src/main/java/io/legado/app/data/repository/ReadStyleRepository.kt @@ -166,8 +166,8 @@ class ReadStyleRepository( } } config.bgStr = bgPath - } else if (config.bgTypeNight == 0) { - config.bgStrNight.toColorInt() + } else if (config.bgType == 0) { + config.bgStr.toColorInt() } if (config.bgTypeNight == 2) { val bgName = FileUtils.getName(config.bgStrNight) @@ -180,6 +180,8 @@ class ReadStyleRepository( } } config.bgStrNight = bgPath + } else if (config.bgTypeNight == 0) { + config.bgStrNight.toColorInt() } if (config.bgTypeEInk == 2) { val bgName = FileUtils.getName(config.bgStrEInk)