mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
Merge pull request #2459 from NativeScript/action-bar-title-fix
fix: ActionBar's title not updating in OnLoaded event
This commit is contained in:
@ -1,5 +1,4 @@
|
|||||||
import common = require("./action-bar-common");
|
import common = require("./action-bar-common");
|
||||||
import frame = require("ui/frame");
|
|
||||||
import types = require("utils/types");
|
import types = require("utils/types");
|
||||||
import enums = require("ui/enums");
|
import enums = require("ui/enums");
|
||||||
import application = require("application");
|
import application = require("application");
|
||||||
@ -301,15 +300,13 @@ export class ActionBar extends common.ActionBar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public _onTitlePropertyChanged() {
|
public _onTitlePropertyChanged() {
|
||||||
var topFrame = frame.topmost();
|
if (this._toolbar) {
|
||||||
if (this._toolbar && topFrame && topFrame.currentPage === this.page) {
|
|
||||||
this._updateTitleAndTitleView();
|
this._updateTitleAndTitleView();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public _onIconPropertyChanged() {
|
public _onIconPropertyChanged() {
|
||||||
var topFrame = frame.topmost();
|
if (this._toolbar) {
|
||||||
if (this._toolbar && topFrame && topFrame.currentPage === this.page) {
|
|
||||||
this._updateIcon();
|
this._updateIcon();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user