From 70199a1099450a3703c783e79a06d707892d8ea8 Mon Sep 17 00:00:00 2001 From: Eduardo Speroni Date: Thu, 19 Nov 2020 18:07:07 -0300 Subject: [PATCH] use startActivity if foreground activity is still not defined --- packages/core/application/index.android.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/application/index.android.ts b/packages/core/application/index.android.ts index c3dbacd38..50ce16597 100644 --- a/packages/core/application/index.android.ts +++ b/packages/core/application/index.android.ts @@ -191,7 +191,7 @@ export function addCss(cssText: string, attributeScoped?: boolean): void { const CALLBACKS = '_callbacks'; export function _resetRootView(entry?: NavigationEntry | string): void { - const activity = androidApp.foregroundActivity; + const activity = androidApp.foregroundActivity || androidApp.startActivity; if (!activity) { throw new Error('Cannot find android activity.'); }