mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
fix: added the same for didDisappear
This commit is contained in:
@ -129,7 +129,7 @@ class UIViewControllerImpl extends UIViewController {
|
||||
// because changes happen in an interactive transition - IOS will animate between the the states.
|
||||
// If canceled - viewWillAppear will be called for the current page(which is already loaded) and we need to
|
||||
// update the action bar explicitly, so that it is not left styles as the previous page.
|
||||
owner.updateWithWillAppear();
|
||||
owner.updateWithWillAppear(animated);
|
||||
}
|
||||
}
|
||||
|
||||
@ -221,6 +221,7 @@ class UIViewControllerImpl extends UIViewController {
|
||||
owner.onNavigatingFrom(isBack);
|
||||
}
|
||||
}
|
||||
owner.updateWithWillDisappear(animated);
|
||||
}
|
||||
|
||||
@profile
|
||||
@ -368,13 +369,18 @@ export class Page extends PageBase {
|
||||
this.actionBar.update();
|
||||
}
|
||||
}
|
||||
updateWithWillAppear() {
|
||||
updateWithWillAppear(animated: boolean) {
|
||||
// this method is important because it allows plugins to react to modal page close
|
||||
// for example allowing updating status bar background color
|
||||
this.actionBar.update();
|
||||
this.updateStatusBar();
|
||||
}
|
||||
|
||||
updateWithWillDisappear(animated: boolean) {
|
||||
// this method is important because it allows plugins to react to modal page close
|
||||
// for example allowing updating status bar background color
|
||||
}
|
||||
|
||||
public updateStatusBar() {
|
||||
this._updateStatusBarStyle(this.statusBarStyle);
|
||||
}
|
||||
|
Reference in New Issue
Block a user