From 41ee5663ab2a68d0fddbff9fd6d3c2f5b3672e99 Mon Sep 17 00:00:00 2001 From: Jay Aliomer Date: Sun, 19 Apr 2020 21:44:26 -0400 Subject: [PATCH] Twilight Location off text When location is disabled, dark theme and night light will show text and button to take the user to location page Fixes: 153115261 Fixes: 153115618 Test: manually turn off location and observe view Change-Id: I24be2f26a4c9e1b3f2a17e83e6f91cb7685f2e28 --- res/layout/twilight_mode_location_off.xml | 60 ++++++++++++++++ res/values/ids.xml | 3 + res/values/strings.xml | 6 +- res/xml/dark_mode_settings.xml | 8 +++ res/xml/night_display_settings.xml | 7 ++ .../TwilightLocationPreferenceController.java | 69 +++++++++++++++++++ .../darkmode/DarkModeSettingsFragment.java | 2 +- 7 files changed, 151 insertions(+), 4 deletions(-) create mode 100644 res/layout/twilight_mode_location_off.xml create mode 100644 src/com/android/settings/display/TwilightLocationPreferenceController.java diff --git a/res/layout/twilight_mode_location_off.xml b/res/layout/twilight_mode_location_off.xml new file mode 100644 index 00000000000..da3aa4ceca0 --- /dev/null +++ b/res/layout/twilight_mode_location_off.xml @@ -0,0 +1,60 @@ + + + + + + + + + + + + + +