Using the frame navigaiton from Page events like loaded, navigatedTo, etc. is causing the applicaiton to crash with the following:
ActivityManager: Start proc 14050:org.nativescript.frameNavigaiton/u0a109 for activity org.nativescript.frameNavigaiton/com.tns.NativeScriptActivity
System.err: java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
System.err: at android.view.ViewGroup.addViewInner(ViewGroup.java:4937)
System.err: at android.view.ViewGroup.addView(ViewGroup.java:4768)
System.err: at android.view.ViewGroup.addView(ViewGroup.java:4708)
System.err: at android.view.ViewGroup.addView(ViewGroup.java:4681)
System.err: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1284)
System.err: at android.app.FragmentManagerImpl.addAddedFragments(FragmentManager.java:2407)
System.err: at android.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2186)
System.err: at android.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2142)
System.err: at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2043)
System.err: at android.app.FragmentManagerImpl$1.run(FragmentManager.java:719)
System.err: at android.os.Handler.handleCallback(Handler.java:790)
System.err: at android.os.Handler.dispatchMessage(Handler.java:99)
System.err: at android.os.Looper.loop(Looper.java:164)
System.err: at android.app.ActivityThread.main(ActivityThread.java:6494)
System.err: at java.lang.reflect.Method.invoke(Native Method)
System.err: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
ActivityManager: Process org.nativescript.frameNavigaiton (pid 14050) has died: fore TOP
Steps to reproduce:
The same happens if we try to get a reference via getFrameById (the reference is valid).
As a workaround the call to navigate method can be wrapped in setTimeout
Reactions are currently unavailable
Using the frame navigaiton from Page events like loaded, navigatedTo, etc. is causing the applicaiton to crash with the following:
Steps to reproduce:
The same happens if we try to get a reference via getFrameById (the reference is valid).
As a workaround the call to navigate method can be wrapped in setTimeout