reorder intialization
This commit is contained in:
parent
a81a70cbe2
commit
b4eb47d80c
@ -45,9 +45,12 @@ public class PreferenceActivity extends ActionBarActivity {
|
|||||||
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
|
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
|
||||||
@Override
|
@Override
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
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());
|
setTheme(UserPreferences.getTheme());
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
instance = this;
|
|
||||||
|
|
||||||
ActionBar ab = getSupportActionBar();
|
ActionBar ab = getSupportActionBar();
|
||||||
if (ab != null) {
|
if (ab != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user