From ff30c4861fa34afd21501f9cc92020505614c6ef Mon Sep 17 00:00:00 2001 From: Manol Donev Date: Tue, 15 Oct 2019 11:28:53 +0300 Subject: [PATCH] fix(frame-android): IllegalStateException: The specified child already has a parent (#7948) --- tns-core-modules/ui/frame/frame.android.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tns-core-modules/ui/frame/frame.android.ts b/tns-core-modules/ui/frame/frame.android.ts index fc52f37b8..b3d3d8f2b 100644 --- a/tns-core-modules/ui/frame/frame.android.ts +++ b/tns-core-modules/ui/frame/frame.android.ts @@ -902,7 +902,7 @@ class FragmentCallbacksImplementation implements AndroidFragmentCallbacks { parentView.addViewInLayout(nativeView, -1, new org.nativescript.widgets.CommonLayoutParams()); } - parentView.removeView(nativeView); + parentView.removeAllViews(); } }