mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(android): parallel navigations should not be triggered (#6275)
This commit is contained in:
@@ -497,7 +497,7 @@ export class View extends ViewCommon {
|
|||||||
|
|
||||||
public getLocationRelativeTo(otherView: ViewCommon): Point {
|
public getLocationRelativeTo(otherView: ViewCommon): Point {
|
||||||
if (!this.nativeViewProtected || !this.nativeViewProtected.getWindowToken() ||
|
if (!this.nativeViewProtected || !this.nativeViewProtected.getWindowToken() ||
|
||||||
!otherView.nativeViewProtected || !otherView.nativeViewProtected.getWindowToken() ||
|
!otherView || !otherView.nativeViewProtected || !otherView.nativeViewProtected.getWindowToken() ||
|
||||||
this.nativeViewProtected.getWindowToken() !== otherView.nativeViewProtected.getWindowToken()) {
|
this.nativeViewProtected.getWindowToken() !== otherView.nativeViewProtected.getWindowToken()) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ export class Frame extends FrameBase {
|
|||||||
// In this case call _navigateCore in order to recreate the current fragment.
|
// In this case call _navigateCore in order to recreate the current fragment.
|
||||||
// Don't call navigate because it will fire navigation events.
|
// Don't call navigate because it will fire navigation events.
|
||||||
// As JS instances are alive it is already done for the current page.
|
// As JS instances are alive it is already done for the current page.
|
||||||
if (!this.isLoaded || !this._attachedToWindow) {
|
if (!this.isLoaded || this._executingEntry || !this._attachedToWindow) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user