From 4a97b31f42c638e6f31e0674b48d5787c568374a Mon Sep 17 00:00:00 2001 From: Candice Date: Tue, 18 Feb 2025 07:33:05 +0000 Subject: [PATCH] Update the dark theme and EDT description Bug: 315012822 Test: Manually. See screenshot in the bug Test: atest DarkModeTopIntroPreferenceControllerTest Flag: android.view.accessibility.force_invert_color Change-Id: I94ba1af4e49c461978fc6b31e82e44c88ba19109 --- res/values/strings.xml | 3 +- res/xml/dark_mode_settings.xml | 4 +- .../DarkModeTopIntroPreferenceController.java | 59 +++++++++++++ ...kModeTopIntroPreferenceControllerTest.java | 86 +++++++++++++++++++ 4 files changed, 149 insertions(+), 3 deletions(-) create mode 100644 src/com/android/settings/display/darkmode/DarkModeTopIntroPreferenceController.java create mode 100644 tests/robotests/src/com/android/settings/display/darkmode/DarkModeTopIntroPreferenceControllerTest.java diff --git a/res/values/strings.xml b/res/values/strings.xml index 9ded9ad354b..fbc766c2f34 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -3164,6 +3164,7 @@ Will turn off when %1$s ends Dark theme uses a black background to help keep battery alive longer on some screens. Dark theme schedules wait to turn on until your screen is off. + Use a dark background to make your screen more comfortable to view and reduce battery usage on some screens. Your theme will change if you have a schedule, when the screen is off. Dark theme is currently following your Bedtime mode schedule @@ -5562,7 +5563,7 @@ Make more apps dark - Automatically convert light theme apps to dark theme + Expands dark theme to more apps. May not work with all apps. Remove animations diff --git a/res/xml/dark_mode_settings.xml b/res/xml/dark_mode_settings.xml index 44bd807b660..f886daf2e5b 100644 --- a/res/xml/dark_mode_settings.xml +++ b/res/xml/dark_mode_settings.xml @@ -22,8 +22,8 @@ + settings:searchable="false" + settings:controller="com.android.settings.display.darkmode.DarkModeTopIntroPreferenceController"/>