diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-01-03 20:09:11 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-01-03 20:09:11 -0800 |
commit | 1023f1350dedf2d9f6b5a40c0acb156b3602cd58 (patch) | |
tree | 3a6ef22d04427da09eb7cbee39c78602fb12168d /src/github/daneren2005 | |
parent | 05a279b66c2a0b1d2f1b40cc0df6163576aa1e49 (diff) | |
download | dsub-1023f1350dedf2d9f6b5a40c0acb156b3602cd58.tar.gz dsub-1023f1350dedf2d9f6b5a40c0acb156b3602cd58.tar.bz2 dsub-1023f1350dedf2d9f6b5a40c0acb156b3602cd58.zip |
Fix crash if title is null for any reason
Diffstat (limited to 'src/github/daneren2005')
-rw-r--r-- | src/github/daneren2005/dsub/activity/SubsonicActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/activity/SubsonicActivity.java b/src/github/daneren2005/dsub/activity/SubsonicActivity.java index 09a1995e..f73bccb8 100644 --- a/src/github/daneren2005/dsub/activity/SubsonicActivity.java +++ b/src/github/daneren2005/dsub/activity/SubsonicActivity.java @@ -379,7 +379,7 @@ public class SubsonicActivity extends ActionBarActivity implements OnItemSelecte @Override
public void setTitle(CharSequence title) {
- if(!title.equals(getSupportActionBar().getTitle())) {
+ if(title != null && !title.equals(getSupportActionBar().getTitle())) {
getSupportActionBar().setTitle(title);
recreateSpinner();
}
|