LeOSium_webview/LeOS/patches/Follow-only-system-dark-mod...

26 lines
1.4 KiB
Diff
Raw Normal View History

2023-11-18 11:46:19 +01:00
From: krlvm <51774833+krlvm@users.noreply.github.com>
Date: Mon, 4 Jul 2022 16:14:37 +0300
Subject: Follow only system dark mode
Follow only system dark mode preference when theme is set to system default
License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
---
.../browser/night_mode/GlobalNightModeStateController.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/browser/ui/android/night_mode/java/src/org/chromium/chrome/browser/night_mode/GlobalNightModeStateController.java b/chrome/browser/ui/android/night_mode/java/src/org/chromium/chrome/browser/night_mode/GlobalNightModeStateController.java
--- a/chrome/browser/ui/android/night_mode/java/src/org/chromium/chrome/browser/night_mode/GlobalNightModeStateController.java
+++ b/chrome/browser/ui/android/night_mode/java/src/org/chromium/chrome/browser/night_mode/GlobalNightModeStateController.java
@@ -136,7 +136,7 @@ class GlobalNightModeStateController implements NightModeStateProvider,
}
private void updateNightMode() {
- boolean powerSaveModeOn = mPowerSaveModeMonitor.powerSavingIsOn();
+ boolean powerSaveModeOn = false;
final int theme = NightModeUtils.getThemeSetting();
final boolean newNightModeOn = theme == ThemeType.SYSTEM_DEFAULT
&& (powerSaveModeOn || mSystemNightModeMonitor.isSystemNightModeOn())
--
2.25.1