From ce1770b77832a72cddaea23263329d6c8ef56131 Mon Sep 17 00:00:00 2001 From: Dan Sandler Date: Mon, 25 Feb 2019 18:26:04 -0500 Subject: [PATCH] DO NOT MERGE: Disable night UI mode in battery saver. Apps are simply not ready for this. Bug: 122968431 Test: Toggle battery saver; confirm that a config change is not generated Change-Id: I792d42e31254c8189e95c3f076b9eaea893209a6 --- .../src/com/android/systemui/statusbar/phone/StatusBar.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java index 70bca8d410942..d6a770f75e2f8 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java @@ -330,8 +330,8 @@ public class StatusBar extends SystemUI implements DemoMode, /** Whether to force dark theme if Configuration.UI_MODE_NIGHT_YES. */ private static final boolean DARK_THEME_IN_NIGHT_MODE = true; - /** Whether to switch the device into night mode in battery saver. */ - private static final boolean NIGHT_MODE_IN_BATTERY_SAVER = true; + /** Whether to switch the device into night mode in battery saver. (Disabled.) */ + private static final boolean NIGHT_MODE_IN_BATTERY_SAVER = false; /** * Never let the alpha become zero for surfaces that draw with SRC - otherwise the RenderNode