diff --git a/src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java b/src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java index 7cedaea..d17d64b 100644 --- a/src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java +++ b/src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java @@ -148,7 +148,7 @@ public class CyanogenSettingsPage extends SetupPage { SetupStats.Label.CHECKED, String.valueOf(privacyData.getBoolean(KEY_APPLY_DEFAULT_THEME))); Log.i(TAG, "Applying default theme"); - final ThemeManager tm = ThemeManager.getInstance(); + final ThemeManager tm = ThemeManager.getInstance(mContext); tm.applyDefaultTheme(); } else { diff --git a/src/com/cyanogenmod/setupwizard/ui/SetupWizardActivity.java b/src/com/cyanogenmod/setupwizard/ui/SetupWizardActivity.java index b3f2db4..6005347 100644 --- a/src/com/cyanogenmod/setupwizard/ui/SetupWizardActivity.java +++ b/src/com/cyanogenmod/setupwizard/ui/SetupWizardActivity.java @@ -353,7 +353,7 @@ public class SetupWizardActivity extends Activity implements SetupDataCallbacks, mFinishingProgressBar.setVisibility(View.VISIBLE); mFinishingProgressBar.setIndeterminate(true); mFinishingProgressBar.startAnimation(fadeIn); - final ThemeManager tm = ThemeManager.getInstance(); + final ThemeManager tm = ThemeManager.getInstance(this); tm.addClient(this); mSetupData.finishPages(); } @@ -469,7 +469,7 @@ public class SetupWizardActivity extends Activity implements SetupDataCallbacks, if (mEnableAccessibilityController != null) { mEnableAccessibilityController.onDestroy(); } - final ThemeManager tm = ThemeManager.getInstance(); + final ThemeManager tm = ThemeManager.getInstance(SetupWizardActivity.this); tm.removeClient(SetupWizardActivity.this); SetupStats.sendEvents(SetupWizardActivity.this); SetupWizardUtils.disableGMSSetupWizard(SetupWizardActivity.this);