| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,6 +37,14 @@ export class Frame extends FrameBase { | |||
| 37 | 37 | return this._ios; | |
| 38 | 38 | } | |
| 39 | 39 | ||
| 40 | + public setCurrent(entry: BackstackEntry, isBack: boolean): void { | ||
| 41 | + if (entry !== this._currentEntry) { | ||
| 42 | + this._updateBackstack(entry, isBack); | ||
| 43 | + } | ||
| 44 | + | ||
| 45 | + super.setCurrent(entry, isBack); | ||
| 46 | + } | ||
| 47 | + | ||
| 40 | 48 | @profile | |
| 41 | 49 | public _navigateCore(backstackEntry: BackstackEntry) { | |
| 42 | 50 | super._navigateCore(backstackEntry); | |
@@ -352,7 +360,7 @@ class UINavigationControllerImpl extends UINavigationController { | |||
| 352 | 360 | ||
| 353 | 361 | @profile | |
| 354 | 362 | public viewDidDisappear(animated: boolean): void { | |
| 355 | - super.viewDidDisappear(animated); | ||
| 363 | + super.viewDidDisappear(animated); | ||
| 356 | 364 | const owner = this._owner.get(); | |
| 357 | 365 | if (owner && owner.isLoaded && !owner.parent && !this.presentedViewController) { | |
| 358 | 366 | owner.callUnloaded(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -138,7 +138,6 @@ class UIViewControllerImpl extends UIViewController { | |||
| 138 | 138 | isBack = isBackNavigationTo(owner, newEntry); | |
| 139 | 139 | } | |
| 140 | 140 | ||
| 141 | - frame._updateBackstack(newEntry, isBack); | ||
| 142 | 141 | frame.setCurrent(newEntry, isBack); | |
| 143 | 142 | ||
| 144 | 143 | // If page was shown with custom animation - we need to set the navigationController.delegate to the animatedDelegate. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments