diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-12-18 17:25:03 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-12-18 17:25:03 -0800 |
commit | 8cff8360a9e463035cb7fb31c72b38c92af71030 (patch) | |
tree | ba76b4b45447a37aad8be4323b953a2fb8aa0dd7 /app | |
parent | c9733cb6d6aa7175211c90b69e69cd928add6ce3 (diff) | |
download | dsub-8cff8360a9e463035cb7fb31c72b38c92af71030.tar.gz dsub-8cff8360a9e463035cb7fb31c72b38c92af71030.tar.bz2 dsub-8cff8360a9e463035cb7fb31c72b38c92af71030.zip |
Fix crash on rotate in Settings sub-fragment
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java b/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java index edcb7486..a58f169b 100644 --- a/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java +++ b/app/src/main/java/github/daneren2005/dsub/activity/SubsonicActivity.java @@ -525,7 +525,7 @@ public class SubsonicActivity extends AppCompatActivity implements OnItemSelecte @Override public void setTitle(CharSequence title) { - if(title != null && !title.equals(getSupportActionBar().getTitle())) { + if(title != null && getSupportActionBar() != null && !title.equals(getSupportActionBar().getTitle())) { getSupportActionBar().setTitle(title); recreateSpinner(); } |