mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00
refactor: deprecated goBack() usage (#8002)
This commit is contained in:
@ -9,7 +9,7 @@ import { Page } from "../page";
|
|||||||
import * as application from "../../application";
|
import * as application from "../../application";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
_stack, FrameBase, goBack, NavigationType, Observable,
|
_stack, FrameBase, NavigationType, Observable,
|
||||||
traceCategories, traceEnabled, traceError, traceWrite, View
|
traceCategories, traceEnabled, traceError, traceWrite, View
|
||||||
} from "./frame-common";
|
} from "./frame-common";
|
||||||
|
|
||||||
@ -1189,7 +1189,7 @@ class ActivityCallbacksImplementation implements AndroidActivityCallbacks {
|
|||||||
const view = this._rootView;
|
const view = this._rootView;
|
||||||
let callSuper = false;
|
let callSuper = false;
|
||||||
if (view instanceof Frame) {
|
if (view instanceof Frame) {
|
||||||
callSuper = !goBack();
|
callSuper = !FrameBase.goBack();
|
||||||
} else {
|
} else {
|
||||||
const viewArgs = <application.AndroidActivityBackPressedEventData>{
|
const viewArgs = <application.AndroidActivityBackPressedEventData>{
|
||||||
eventName: "activityBackPressed",
|
eventName: "activityBackPressed",
|
||||||
|
Reference in New Issue
Block a user