diff options
author | Scott Jackson <daneren2005@gmail.com> | 2014-11-18 09:56:55 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2014-11-18 09:56:55 -0800 |
commit | 9dc01bac041d654eca08d4f7ee6f903116f8666e (patch) | |
tree | d62bff8b9643b1b3d5e0e7a4fdc8d34de386b298 /src/github/daneren2005 | |
parent | fa2183d81ca6dc9198b2bca94aed6c0c97492d55 (diff) | |
download | dsub-9dc01bac041d654eca08d4f7ee6f903116f8666e.tar.gz dsub-9dc01bac041d654eca08d4f7ee6f903116f8666e.tar.bz2 dsub-9dc01bac041d654eca08d4f7ee6f903116f8666e.zip |
Fix crash on 5.0
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r-- | src/github/daneren2005/dsub/activity/SettingsActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/activity/SettingsActivity.java b/src/github/daneren2005/dsub/activity/SettingsActivity.java index 0dd68fcb..59fe8cac 100644 --- a/src/github/daneren2005/dsub/activity/SettingsActivity.java +++ b/src/github/daneren2005/dsub/activity/SettingsActivity.java @@ -227,7 +227,7 @@ public class SettingsActivity extends PreferenceActivity implements SharedPrefer update(); - if(Build.VERSION.SDK_INT > Build.VERSION_CODES.ICE_CREAM_SANDWICH) { + if(Build.VERSION.SDK_INT > Build.VERSION_CODES.ICE_CREAM_SANDWICH && getActionBar() != null) { getActionBar().setDisplayHomeAsUpEnabled(true); getActionBar().setHomeButtonEnabled(true); } |