hide actionbar subtitle if no highlighter is selected

This commit is contained in:
Philipp Schaefer 2013-09-24 20:00:54 +02:00
parent 31c205218e
commit db7e387a2f

View File

@ -219,10 +219,13 @@ public class IITC_NavigationHelper extends ActionBarDrawerToggle implements OnIt
mActionBar.setTitle(getPaneTitle(mPane));
}
if (!isDrawerOpened() && (mDesktopMode || mPane == Pane.MAP))
if (mHighlighter != null && !isDrawerOpened() && (mDesktopMode || mPane == Pane.MAP))
if (!mActionBar.equals("No Highlights"))
mActionBar.setSubtitle(mHighlighter);
else
mActionBar.setSubtitle(null);
else
mActionBar.setSubtitle(null);
if (mFullscreen && mHideInFullscreen)
mActionBar.hide();