mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
FIX: Adnroid app crashes when there is action bar on main page
This commit is contained in:
@ -208,13 +208,15 @@ export class ActionBar extends common.ActionBar {
|
||||
}
|
||||
|
||||
public _onTitlePropertyChanged() {
|
||||
if (frame.topmost().currentPage === this.page) {
|
||||
var topFrame = frame.topmost();
|
||||
if (topFrame && topFrame.currentPage === this.page) {
|
||||
this._updateTitleAndTitleView(frame.topmost().android.actionBar);
|
||||
}
|
||||
}
|
||||
|
||||
public _onIconPropertyChanged() {
|
||||
if (frame.topmost().currentPage === this.page) {
|
||||
var topFrame = frame.topmost();
|
||||
if (topFrame && topFrame.currentPage === this.page) {
|
||||
this._updateIcon(frame.topmost().android.actionBar);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user