From 81043105926dbd7cc6abf03bb5e88c515014b21b Mon Sep 17 00:00:00 2001 From: d34d Date: Wed, 24 Feb 2016 15:48:56 -0800 Subject: Themes: Refactor themes to CMSDK [6/6] Change-Id: I26214e9a71f4d2f5f1b61cf3cabdcdb8bcc098b1 TICKET: CYNGNOS-2126 --- src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/com/cyanogenmod/setupwizard/setup') diff --git a/src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java b/src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java index 4827090..7cedaea 100644 --- a/src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java +++ b/src/com/cyanogenmod/setupwizard/setup/CyanogenSettingsPage.java @@ -22,7 +22,6 @@ import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.res.ThemeConfig; -import android.content.res.ThemeManager; import android.net.Uri; import android.os.Bundle; import android.os.RemoteException; @@ -49,6 +48,7 @@ import com.cyanogenmod.setupwizard.util.SetupWizardUtils; import cyanogenmod.hardware.CMHardwareManager; import cyanogenmod.providers.CMSettings; +import cyanogenmod.themes.ThemeManager; public class CyanogenSettingsPage extends SetupPage { @@ -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) mContext.getSystemService(Context.THEME_SERVICE); + final ThemeManager tm = ThemeManager.getInstance(); tm.applyDefaultTheme(); } else { -- cgit v1.1