Skip to content

Commit

Permalink
Fix crash on rotate in Settings sub-fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
daneren2005 committed Dec 19, 2015
1 parent c9733cb commit 8cff836
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ public boolean onKeyDown(int keyCode, KeyEvent event) {

@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();
}
Expand Down

0 comments on commit 8cff836

Please sign in to comment.