Remove dependency of SudGlifTheme from SettingsTheme
Root cause: Inherit from the glif themes in setupdesign library Solution: Not inherit from the glif themes and set Setting theme before applying the dynamic color Bug: 225800660 Test: Manual testing Change-Id: Ic4d71bf7a754888c1ed1590c0483360d65f5da44
This commit is contained in:
@@ -102,11 +102,7 @@ public class AccessibilitySettingsForSetupWizardActivity extends SettingsActivit
|
||||
|
||||
private void applyTheme() {
|
||||
setTheme(SetupWizardUtils.getTheme(this, getIntent()));
|
||||
if (ThemeHelper.trySetDynamicColor(this)) {
|
||||
final int appliedTheme = ThemeHelper.isSetupWizardDayNightEnabled(this)
|
||||
? R.style.SudDynamicColorThemeSettings_SetupWizard_DayNight
|
||||
: R.style.SudDynamicColorThemeSettings_SetupWizard;
|
||||
setTheme(appliedTheme);
|
||||
}
|
||||
setTheme(R.style.SettingsPreferenceTheme_SetupWizard);
|
||||
ThemeHelper.trySetDynamicColor(this);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user