Skip to content

Commit bbd9177

Browse files
author
vakrilov
committed
fix: Respect root view rturned from launch event in Android
1 parent a162e29 commit bbd9177

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,8 @@ function setActivityContent(activity: android.app.Activity, savedInstanceState:
953953
throw new Error("A Frame must be used to navigate to a Page.");
954954
}
955955
} else {
956-
rootView = createViewFromEntry(mainEntry);
956+
// Create the root view if the notifyLaunch didn't return it
957+
rootView = rootView || createViewFromEntry(mainEntry);
957958
}
958959

959960
callbacks._rootView = (<any>app).rootView = rootView;

0 commit comments

Comments
 (0)