Skip to content

Commit

Permalink
fix(frame): recreate frame if no cached one found on app resume #5318 (
Browse files Browse the repository at this point in the history
  • Loading branch information
ADjenkov authored and Alexander Vakrilov committed Jan 25, 2018
1 parent af934cc commit 9d7f0e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tns-core-modules/ui/frame/frame.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ function setActivityContent(activity: android.app.Activity, savedInstanceState:
if (!rootView) {
// If we have frameId from extras - we are starting a new activity from navigation (e.g. new Frame().navigate()))
// Then we check if we have frameId from savedInstanceState - this happens when Activity is destroyed but app was not (e.g. suspend)
rootView = frameId >= 0 ? getFrameById(frameId) : new Frame();
rootView = getFrameById(frameId) || new Frame();
}

if (rootView instanceof Frame) {
Expand Down

0 comments on commit 9d7f0e5

Please sign in to comment.