Revert "Revert "PreferenceActivity now applies its theme correctly""

This reverts commit aee135d724.
This commit is contained in:
daniel oeh 2012-11-24 23:24:53 +01:00
parent aee135d724
commit deb888fac1
1 changed files with 8 additions and 0 deletions

View File

@ -1,6 +1,7 @@
package de.danoeh.antennapod.activity;
import android.content.Intent;
import android.content.res.Resources.Theme;
import android.os.Bundle;
import android.preference.Preference;
import android.preference.Preference.OnPreferenceChangeListener;
@ -132,4 +133,11 @@ public class PreferenceActivity extends SherlockPreferenceActivity {
return true;
}
@Override
protected void onApplyThemeResource(Theme theme, int resid, boolean first) {
theme.applyStyle(PodcastApp.getThemeResourceId(), true);
}
}