diff --git a/res/values/themes_suw.xml b/res/values/themes_suw.xml
index d7b4ca06b67..067ddfb558c 100644
--- a/res/values/themes_suw.xml
+++ b/res/values/themes_suw.xml
@@ -223,6 +223,24 @@
+
+
+
+
+
+
diff --git a/src/com/android/settings/accessibility/AccessibilitySettingsForSetupWizardActivity.java b/src/com/android/settings/accessibility/AccessibilitySettingsForSetupWizardActivity.java
index 48b3992b685..b65b349707c 100644
--- a/src/com/android/settings/accessibility/AccessibilitySettingsForSetupWizardActivity.java
+++ b/src/com/android/settings/accessibility/AccessibilitySettingsForSetupWizardActivity.java
@@ -101,12 +101,22 @@ public class AccessibilitySettingsForSetupWizardActivity extends SettingsActivit
@Override
protected void onCreate(Bundle savedState) {
super.onCreate(savedState);
- setTheme(SetupWizardUtils.getTheme(this, getIntent()));
- ThemeHelper.trySetDynamicColor(this);
+ applyTheme();
tryLaunchFontSizeSettings();
findViewById(R.id.content_parent).setFitsSystemWindows(false);
}
+ private void applyTheme() {
+ if (ThemeHelper.trySetDynamicColor(this)) {
+ final int appliedTheme = ThemeHelper.isSetupWizardDayNightEnabled(this)
+ ? R.style.SudDynamicColorThemeSettings_SetupWizard_DayNight
+ : R.style.SudDynamicColorThemeSettings_SetupWizard;
+ setTheme(appliedTheme);
+ } else {
+ setTheme(SetupWizardUtils.getTheme(this, getIntent()));
+ }
+ }
+
@VisibleForTesting
void tryLaunchFontSizeSettings() {
if (WizardManagerHelper.isAnySetupWizard(getIntent())
diff --git a/src/com/android/settings/core/SettingsBaseActivity.java b/src/com/android/settings/core/SettingsBaseActivity.java
index e8a7f36908a..ceb502ae327 100644
--- a/src/com/android/settings/core/SettingsBaseActivity.java
+++ b/src/com/android/settings/core/SettingsBaseActivity.java
@@ -91,10 +91,17 @@ public class SettingsBaseActivity extends FragmentActivity implements CategoryHa
// Apply SetupWizard light theme during setup flow. This is for SubSettings pages.
final boolean isAnySetupWizard = WizardManagerHelper.isAnySetupWizard(getIntent());
if (isAnySetupWizard && this instanceof SubSettings) {
- final int appliedTheme = ThemeHelper.isSetupWizardDayNightEnabled(this)
- ? R.style.SubSettings_SetupWizard : R.style.SudThemeGlifV3_Light;
+ int appliedTheme;
+ if (ThemeHelper.trySetDynamicColor(this)) {
+ appliedTheme = ThemeHelper.isSetupWizardDayNightEnabled(this)
+ ? R.style.SudDynamicColorThemeSettings_SetupWizard_DayNight
+ : R.style.SudDynamicColorThemeSettings_SetupWizard;
+ } else {
+ appliedTheme = ThemeHelper.isSetupWizardDayNightEnabled(this)
+ ? R.style.SubSettings_SetupWizard
+ : R.style.SudThemeGlifV3_Light;
+ }
setTheme(appliedTheme);
- ThemeHelper.trySetDynamicColor(this);
}
if (isToolbarEnabled() && !isAnySetupWizard) {