Set the theme in BiometricEnrollIntroduction

So the theme used will be consistent throughout the flow.

Test: Manual
Bug: 130277993
Change-Id: I496767dca858f7b69cfa061c026733567b5e7361
This commit is contained in:
Maurice Lam
2019-04-10 20:26:30 -07:00
parent fd3cf32ad8
commit 288f67da10
2 changed files with 16 additions and 1 deletions

View File

@@ -25,11 +25,16 @@ import com.google.android.setupdesign.util.ThemeHelper;
public class SetupWizardUtils {
public static int getTheme(Intent intent) {
public static String getThemeString(Intent intent) {
String theme = intent.getStringExtra(WizardManagerHelper.EXTRA_THEME);
if (theme == null) {
theme = SetupWizardProperties.theme().orElse("");
}
return theme;
}
public static int getTheme(Intent intent) {
String theme = getThemeString(intent);
// TODO(yukl): Move to ThemeResolver and add any additional required attributes in
// onApplyThemeResource using Theme overlays
if (theme != null) {