PreferenceActivity now applies its theme correctly

This commit is contained in:
daniel oeh 2012-11-23 20:13:26 +01:00
parent a8463d54f1
commit 50072c4ebb
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);
}
}