SetupWizard: Update for themes api changes.

Change-Id: I8d97d43f655bcdc32e5d94d7c844fe1b64919898
TICKET: CYNGNOS-2295
This commit is contained in:
Adnan Begovic 2016-03-25 10:56:27 -07:00
parent 0410f846bb
commit 4da02b0881
2 changed files with 3 additions and 3 deletions

View File

@ -148,7 +148,7 @@ public class CyanogenSettingsPage extends SetupPage {
SetupStats.Label.CHECKED, SetupStats.Label.CHECKED,
String.valueOf(privacyData.getBoolean(KEY_APPLY_DEFAULT_THEME))); String.valueOf(privacyData.getBoolean(KEY_APPLY_DEFAULT_THEME)));
Log.i(TAG, "Applying default theme"); Log.i(TAG, "Applying default theme");
final ThemeManager tm = ThemeManager.getInstance(); final ThemeManager tm = ThemeManager.getInstance(mContext);
tm.applyDefaultTheme(); tm.applyDefaultTheme();
} else { } else {

View File

@ -353,7 +353,7 @@ public class SetupWizardActivity extends Activity implements SetupDataCallbacks,
mFinishingProgressBar.setVisibility(View.VISIBLE); mFinishingProgressBar.setVisibility(View.VISIBLE);
mFinishingProgressBar.setIndeterminate(true); mFinishingProgressBar.setIndeterminate(true);
mFinishingProgressBar.startAnimation(fadeIn); mFinishingProgressBar.startAnimation(fadeIn);
final ThemeManager tm = ThemeManager.getInstance(); final ThemeManager tm = ThemeManager.getInstance(this);
tm.addClient(this); tm.addClient(this);
mSetupData.finishPages(); mSetupData.finishPages();
} }
@ -469,7 +469,7 @@ public class SetupWizardActivity extends Activity implements SetupDataCallbacks,
if (mEnableAccessibilityController != null) { if (mEnableAccessibilityController != null) {
mEnableAccessibilityController.onDestroy(); mEnableAccessibilityController.onDestroy();
} }
final ThemeManager tm = ThemeManager.getInstance(); final ThemeManager tm = ThemeManager.getInstance(SetupWizardActivity.this);
tm.removeClient(SetupWizardActivity.this); tm.removeClient(SetupWizardActivity.this);
SetupStats.sendEvents(SetupWizardActivity.this); SetupStats.sendEvents(SetupWizardActivity.this);
SetupWizardUtils.disableGMSSetupWizard(SetupWizardActivity.this); SetupWizardUtils.disableGMSSetupWizard(SetupWizardActivity.this);