summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorWinson Chiu <chiuwinson@google.com>2019-02-15 19:24:55 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2019-02-15 19:24:55 +0000
commitff172645e6060239c27eaba4bc8dcd7f2b842f6a (patch)
tree9f88417c718ad0818ec3ec08c75aa03432e839ca /core/java/android
parente0f0c74cf98f4a8fe166ce6321f50f7d21f541e3 (diff)
parentadc69673db5caa52a2e073486c18389b114c4966 (diff)
Merge "Add transient night mode in car mode when targeting Q"
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/app/UiModeManager.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/java/android/app/UiModeManager.java b/core/java/android/app/UiModeManager.java
index a554882123f1..46316e1a254b 100644
--- a/core/java/android/app/UiModeManager.java
+++ b/core/java/android/app/UiModeManager.java
@@ -229,7 +229,11 @@ public class UiModeManager {
* <strong>Note:</strong> On API 22 and below, changes to the night mode
* are only effective when the {@link Configuration#UI_MODE_TYPE_CAR car}
* or {@link Configuration#UI_MODE_TYPE_DESK desk} mode is enabled on a
- * device. Starting in API 23, changes to night mode are always effective.
+ * device. On API 23 through API 28, changes to night mode are always effective.
+ * <p>
+ * Starting in API 29, when the device is in car mode and this method is called, night mode
+ * will change, but the new setting is not persisted and the previously persisted setting
+ * will be restored when the device exits car mode.
* <p>
* Changes to night mode take effect globally and will result in a configuration change
* (and potentially an Activity lifecycle event) being applied to all running apps.