diff --git a/res/values/themes.xml b/res/values/themes.xml index 4c25da7a43b..e3010a64ebd 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -114,6 +114,21 @@ @null + + + + + diff --git a/src/com/android/settings/SetupWizardUtils.java b/src/com/android/settings/SetupWizardUtils.java index d53abae881c..e3e49eb71aa 100644 --- a/src/com/android/settings/SetupWizardUtils.java +++ b/src/com/android/settings/SetupWizardUtils.java @@ -48,11 +48,16 @@ public class SetupWizardUtils { } public static int getTransparentTheme(Intent intent) { - if (WizardManagerHelper.isLightTheme(intent, true)) { - return R.style.SetupWizardTheme_Light_Transparent; - } else { - return R.style.SetupWizardTheme_Transparent; + final int suwTheme = getTheme(intent); + int wifiDialogTheme = R.style.GlifV2Theme_Light_Transparent; + if (suwTheme == R.style.GlifV2Theme) { + wifiDialogTheme = R.style.GlifV2Theme_Transparent; + } else if (suwTheme == R.style.GlifTheme_Light) { + wifiDialogTheme = R.style.SetupWizardTheme_Light_Transparent; + } else if (suwTheme == R.style.GlifTheme) { + wifiDialogTheme = R.style.SetupWizardTheme_Transparent; } + return wifiDialogTheme; } public static void copySetupExtras(Intent fromIntent, Intent toIntent) {