some action bar fixes

This commit is contained in:
Martin Guillon
2021-01-05 10:40:11 +01:00
parent b6b36cf943
commit 8570d4396c
2 changed files with 2 additions and 2 deletions

View File

@ -255,7 +255,7 @@ export class Frame extends FrameBase {
if (page && page.actionBarHidden !== undefined) {
newValue = !page.actionBarHidden;
} else {
newValue = this.ios.controller.viewControllers.count > 1 || (page && page.actionBar && !page.actionBar._isEmpty());
newValue = this.ios.controller.viewControllers.count > 1 || (page && page.hasActionBar && !page.actionBar._isEmpty());
}
newValue = !!newValue;

View File

@ -80,7 +80,7 @@ export class PageBase extends ContentView {
}
public _addChildFromBuilder(name: string, value: any) {
if (value instanceof ActionBar) {
if (value.constructor.name === 'ActionBar') {
this.actionBar = value;
} else {
super._addChildFromBuilder(name, value);