diff options
author | d34d <clark@cyngn.com> | 2016-01-25 11:19:15 -0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2016-01-28 08:04:18 -0800 |
commit | 06aa3eb165a5fd24472adb80c89add8632fa6b31 (patch) | |
tree | d103a38a35f4a12f887bf28efaec43e5e158fabd /src/com/cyanogenmod/setupwizard/ui/SetupWizardActivity.java | |
parent | 578df09d02a967e9fbf39eb51ef510445872a099 (diff) | |
download | packages_apps_SetupWizard-06aa3eb165a5fd24472adb80c89add8632fa6b31.zip packages_apps_SetupWizard-06aa3eb165a5fd24472adb80c89add8632fa6b31.tar.gz packages_apps_SetupWizard-06aa3eb165a5fd24472adb80c89add8632fa6b31.tar.bz2 |
Themes: Re-enable applying theme in OOBE
Change-Id: I0b027bff18c3b33fc0a925ee756766ed31740b35
TICKET: OPO-361
Diffstat (limited to 'src/com/cyanogenmod/setupwizard/ui/SetupWizardActivity.java')
-rw-r--r-- | src/com/cyanogenmod/setupwizard/ui/SetupWizardActivity.java | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/com/cyanogenmod/setupwizard/ui/SetupWizardActivity.java b/src/com/cyanogenmod/setupwizard/ui/SetupWizardActivity.java index 81121fa..37eadbb 100644 --- a/src/com/cyanogenmod/setupwizard/ui/SetupWizardActivity.java +++ b/src/com/cyanogenmod/setupwizard/ui/SetupWizardActivity.java @@ -23,7 +23,7 @@ import android.content.Context; import android.content.Intent; import android.content.pm.ActivityInfo; import android.content.res.Resources; -/*import android.content.res.ThemeManager;*/ +import android.content.res.ThemeManager; import android.graphics.Bitmap; import android.graphics.Point; import android.os.AsyncTask; @@ -52,7 +52,8 @@ import com.cyanogenmod.setupwizard.util.SetupWizardUtils; import java.util.ArrayList; -public class SetupWizardActivity extends Activity implements SetupDataCallbacks { +public class SetupWizardActivity extends Activity implements SetupDataCallbacks, + ThemeManager.ThemeChangeListener { private static final String TAG = SetupWizardActivity.class.getSimpleName(); @@ -305,12 +306,12 @@ public class SetupWizardActivity extends Activity implements SetupDataCallbacks mFinishingProgressBar.setVisibility(View.VISIBLE); mFinishingProgressBar.setIndeterminate(true); mFinishingProgressBar.startAnimation(fadeIn); - /*final ThemeManager tm = (ThemeManager) getSystemService(Context.THEME_SERVICE); - tm.addClient(this);*/ + final ThemeManager tm = (ThemeManager) getSystemService(Context.THEME_SERVICE); + tm.addClient(this); mSetupData.finishPages(); } - /*@Override + @Override public void onFinish(boolean isSuccess) { if (isResumed()) { mHandler.post(new Runnable() { @@ -320,15 +321,15 @@ public class SetupWizardActivity extends Activity implements SetupDataCallbacks } }); } - }*/ + } - /*@Override + @Override public void onProgress(int progress) { if (progress > 0) { mFinishingProgressBar.setIndeterminate(false); mFinishingProgressBar.setProgress(progress); } - }*/ + } @Override public void finishSetup() { @@ -421,9 +422,9 @@ public class SetupWizardActivity extends Activity implements SetupDataCallbacks if (mEnableAccessibilityController != null) { mEnableAccessibilityController.onDestroy(); } - /*final ThemeManager tm = + final ThemeManager tm = (ThemeManager) SetupWizardActivity.this.getSystemService(THEME_SERVICE); - tm.removeClient(SetupWizardActivity.this);*/ + tm.removeClient(SetupWizardActivity.this); SetupStats.sendEvents(SetupWizardActivity.this); SetupWizardUtils.disableGMSSetupWizard(SetupWizardActivity.this); final WallpaperManager wallpaperManager = |