summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorJay Aliomer <aaliomer@google.com>2020-09-18 12:20:52 -0400
committerJay Aliomer <aaliomer@google.com>2020-09-22 15:43:52 +0000
commit7bddda48fcc7a13d35b763141806e304fe7c03b3 (patch)
treea517cf73f9ad0a63fe919076967b51cd5d15b2a0 /core/java/android
parentafded3d0db753620a38af0934ac953580d18c6c0 (diff)
Rememeber the last dark mode before shutdown when in auto mode
Twilight mode is not available when the phone starts. So the last state is rememebered until the phone screen turns off Fixes: 160842085 Test: manual testing Change-Id: I78a490c0f083e92022e1995b3e19dc7dd567a7c3
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/provider/Settings.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java
index 18337b661844..fb2784a164f9 100644
--- a/core/java/android/provider/Settings.java
+++ b/core/java/android/provider/Settings.java
@@ -7954,6 +7954,12 @@ public final class Settings {
public static final String UI_NIGHT_MODE_OVERRIDE_ON = "ui_night_mode_override_on";
/**
+ * The last computed night mode bool the last time the phone was on
+ * @hide
+ */
+ public static final String UI_NIGHT_MODE_LAST_COMPUTED = "ui_night_mode_last_computed";
+
+ /**
* The current night mode that has been overridden to turn off by the system. Owned
* and controlled by UiModeManagerService. Constants are as per
* UiModeManager.