Merge pull request #1137 from TomHennen/fix1136

reorder intialization
This commit is contained in:
Tom Hennen 2015-08-28 16:56:27 -04:00
commit e30ef63fbe
1 changed files with 4 additions and 1 deletions

View File

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