From 4da02b0881a0852f50e615794b4aa5187a67ba31 Mon Sep 17 00:00:00 2001 From: Adnan Begovic Date: Fri, 25 Mar 2016 10:56:27 -0700 Subject: [PATCH] SetupWizard: Update for themes api changes. Change-Id: I8d97d43f655bcdc32e5d94d7c844fe1b64919898 TICKET: CYNGNOS-2295 --- .../cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java | 2 +- src/com/cyanogenmod/setupwizard/ui/SetupWizardActivity.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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);