improve code readability
This commit is contained in:
parent
75481d2269
commit
251a9d0a4b
@ -219,13 +219,11 @@ public class IITC_NavigationHelper extends ActionBarDrawerToggle implements OnIt
|
|||||||
mActionBar.setTitle(getPaneTitle(mPane));
|
mActionBar.setTitle(getPaneTitle(mPane));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mHighlighter != null && !isDrawerOpened() && (mDesktopMode || mPane == Pane.MAP))
|
boolean mapVisible = mDesktopMode || mPane == Pane.MAP;
|
||||||
if (!mHighlighter.equals("No Highlights"))
|
if ("No Highlights".equals(mHighlighter) || isDrawerOpened() || !mapVisible)
|
||||||
mActionBar.setSubtitle(mHighlighter);
|
|
||||||
else
|
|
||||||
mActionBar.setSubtitle(null);
|
|
||||||
else
|
|
||||||
mActionBar.setSubtitle(null);
|
mActionBar.setSubtitle(null);
|
||||||
|
else
|
||||||
|
mActionBar.setSubtitle(mHighlighter);
|
||||||
|
|
||||||
if (mFullscreen && mHideInFullscreen)
|
if (mFullscreen && mHideInFullscreen)
|
||||||
mActionBar.hide();
|
mActionBar.hide();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user