reorder intialization

This commit is contained in:
Tom Hennen 2015-08-27 18:20:16 -04:00
parent a81a70cbe2
commit b4eb47d80c

@ -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) {