Ensure navigation title view is removed if undefined

This commit is contained in:
vakrilov
2017-04-06 13:21:23 +03:00
parent 70ae742f00
commit a598e2c90a

View File

@@ -93,6 +93,8 @@ export class ActionBar extends ActionBarBase {
if (this.titleView && this.titleView.ios) {
navigationItem.titleView = this.titleView.ios;
} else {
navigationItem.titleView = null;
}
// Find previous ViewController in the navigation stack
@@ -119,7 +121,7 @@ export class ActionBar extends ActionBarBase {
img = fromFileOrResource(this.navigationButton.icon);
}
// TODO: This could cause issue when canceling BackEdge gesture - we will change the backIndicator to
// TODO: This could cause issue when canceling BackEdge gesture - we will change the backIndicator to
// show the one from the old page but the new page will still be visible (because we canceled EdgeBackSwipe gesutre)
// Consider moving this to new method and call it from - navigationControllerDidShowViewControllerAnimated.
if (img && img.ios) {
@@ -132,7 +134,7 @@ export class ActionBar extends ActionBarBase {
navigationBar.backIndicatorTransitionMaskImage = null;
}
// Set back button visibility
// Set back button visibility
if (this.navigationButton) {
navigationItem.setHidesBackButtonAnimated(!isVisible(this.navigationButton), true);
}