Skip to content
Permalink
Browse files

aero: fix a NPE during onResume()

Signed-off-by: Blechd0se <alex.christ@hotmail.de>
  • Loading branch information
Blechd0se committed Jun 14, 2015
1 parent 185553c commit d753746d6dcabff91fa1eaeda85f44fba890783d
Showing with 4 additions and 2 deletions.
  1. +4 −2 AeroControl/src/com/aero/control/AeroActivity.java
@@ -468,9 +468,11 @@ public final void setTitle(CharSequence title) {
mTitle = title;

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
mActionBar.setTitle(mTitle);
if (mActionBar != null)
mActionBar.setTitle(mTitle);
} else {
mActionBarTitle.setText(mTitle);
if (mActionBarTitle != null)
mActionBarTitle.setText(mTitle);
}
}

0 comments on commit d753746

Please sign in to comment.
You can’t perform that action at this time.