diff options
author | Tom Hennen <tom.hennen@gmail.com> | 2015-08-27 18:20:16 -0400 |
---|---|---|
committer | Tom Hennen <tom.hennen@gmail.com> | 2015-08-27 18:20:23 -0400 |
commit | b4eb47d80c60b51de18e608f3c215c8f1c4adfe3 (patch) | |
tree | 87d0a222fcca21f16771f58f8b44cb3e2f13191b /app/src/main | |
parent | a81a70cbe29c82323439e2daad71383ea7adf15f (diff) | |
download | AntennaPod-b4eb47d80c60b51de18e608f3c215c8f1c4adfe3.zip |
reorder intialization
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/activity/PreferenceActivity.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/activity/PreferenceActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/PreferenceActivity.java index 94970d833..133436b6f 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/PreferenceActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/PreferenceActivity.java @@ -45,9 +45,12 @@ public class PreferenceActivity extends ActionBarActivity { @TargetApi(Build.VERSION_CODES.HONEYCOMB) @Override protected void onCreate(Bundle savedInstanceState) { + // This must be the FIRST thing we do, otherwise other code may not have the + // reference it needs + instance = this; + setTheme(UserPreferences.getTheme()); super.onCreate(savedInstanceState); - instance = this; ActionBar ab = getSupportActionBar(); if (ab != null) { |