diff options
| author | Winson Chiu <chiuwinson@google.com> | 2019-02-15 19:24:55 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-02-15 19:24:55 +0000 |
| commit | ff172645e6060239c27eaba4bc8dcd7f2b842f6a (patch) | |
| tree | 9f88417c718ad0818ec3ec08c75aa03432e839ca /core/java/android | |
| parent | e0f0c74cf98f4a8fe166ce6321f50f7d21f541e3 (diff) | |
| parent | adc69673db5caa52a2e073486c18389b114c4966 (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.java | 6 |
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. |
