refactor: deprecated goBack() usage (#8002)

This commit is contained in:
Manol Donev
2019-10-23 10:32:57 +03:00
committed by GitHub
parent 0a495b55a2
commit aacfce58ac

View File

@ -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",