FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(android): parallel navigations should not be triggered (#6275) · NativeScript/NativeScript@405ccae · GitHub

Commit 405ccae

Browse files
committed
fix(android): parallel navigations should not be triggered (#6275)
1 parent 5d16749 commit 405ccae

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎tns-core-modules/ui/core/view/view.android.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ export class View extends ViewCommon {
497497

498498
public getLocationRelativeTo(otherView: ViewCommon): Point {
499499
if (!this.nativeViewProtected || !this.nativeViewProtected.getWindowToken() ||
500-
!otherView.nativeViewProtected || !otherView.nativeViewProtected.getWindowToken() ||
500+
!otherView || !otherView.nativeViewProtected || !otherView.nativeViewProtected.getWindowToken() ||
501501
this.nativeViewProtected.getWindowToken() !== otherView.nativeViewProtected.getWindowToken()) {
502502
return undefined;
503503
}

‎tns-core-modules/ui/frame/frame.android.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export class Frame extends FrameBase {
143143
// In this case call _navigateCore in order to recreate the current fragment.
144144
// Don't call navigate because it will fire navigation events.
145145
// As JS instances are alive it is already done for the current page.
146-
if (!this.isLoaded || !this._attachedToWindow) {
146+
if (!this.isLoaded || this._executingEntry || !this._attachedToWindow) {
147147
return;
148148
}
149149

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL