From 083b031850eaf8030a2cbcb7272e2903a7ed2e39 Mon Sep 17 00:00:00 2001 From: Next Alone <12210746+NextAlone@users.noreply.github.com> Date: Thu, 3 Oct 2024 05:00:23 +0800 Subject: [PATCH] fix: custom theme not follow system-based dark mode toggle Signed-off-by: Next Alone <12210746+NextAlone@users.noreply.github.com> --- .../src/main/java/org/telegram/ui/ActionBar/Theme.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TMessagesProj/src/main/java/org/telegram/ui/ActionBar/Theme.java b/TMessagesProj/src/main/java/org/telegram/ui/ActionBar/Theme.java index 08fa59f91..2db5afd71 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/ActionBar/Theme.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/ActionBar/Theme.java @@ -2523,7 +2523,8 @@ public boolean isDark() { } public boolean isLight() { - return pathToFile == null && !isDark(); +// return pathToFile == null && !isDark(); // don't use pathToFile to determine light theme + return !isDark(); } public String getKey() {