From 55fb2b745d19a88f281fd441e5243b54bdfd2bec Mon Sep 17 00:00:00 2001 From: pihuei Date: Tue, 13 Oct 2020 19:00:57 +0800 Subject: [PATCH] Use system day/night to switch theme instead of from intent extra. Use value-night to give theme instead of directly from intent extra when Setup day/nNight mode enabled and in Setup flow Before: https://hsv.googleplex.com/4837266235064320 https://hsv.googleplex.com/5687053981319168 https://hsv.googleplex.com/4843506419892224 https://hsv.googleplex.com/5650348922372096 https://hsv.googleplex.com/5133769046491136 https://hsv.googleplex.com/5681937198874624 https://hsv.googleplex.com/5767441676238848 https://hsv.googleplex.com/6632476812247040 After: https://hsv.googleplex.com/6213298875793408 https://hsv.googleplex.com/6025790804197376 https://hsv.googleplex.com/5747461219942400 https://hsv.googleplex.com/5766700781797376 https://hsv.googleplex.com/6751334529236992 https://hsv.googleplex.com/5625963293442048 https://hsv.googleplex.com/4518139360444416 https://hsv.googleplex.com/5220720579706880 Bug: 169734655 Test: robo test Change-Id: I4aab843e28a932c7b823f36f1d8df1e5b2341f4e --- AndroidManifest.xml | 2 +- res/values-night/themes_suw.xml | 28 +++ res/values/themes_suw.xml | 11 +- .../settings/EncryptionInterstitial.java | 4 +- .../android/settings/SetupWizardUtils.java | 70 +++++-- ...ibilitySettingsForSetupWizardActivity.java | 8 + .../biometrics/BiometricEnrollActivity.java | 4 +- .../biometrics/BiometricEnrollBase.java | 4 +- .../notification/RedactionInterstitial.java | 4 +- .../settings/password/ChooseLockPassword.java | 4 +- .../settings/password/ChooseLockPattern.java | 4 +- .../ConfirmDeviceCredentialBaseActivity.java | 4 +- .../password/SetupChooseLockGeneric.java | 7 +- .../settings/wifi/WifiDialogActivity.java | 10 +- .../wifi/dpp/WifiDppBaseActivity.java | 4 +- .../settings/SetupWizardUtilsTest.java | 185 +++++++++++++++++- 16 files changed, 297 insertions(+), 56 deletions(-) create mode 100644 res/values-night/themes_suw.xml diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 97e701ad4de..82088b2bd0d 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -103,7 +103,7 @@ - + + + + + + + - + + +