Skip to content

Commit ff30c48

Browse files
authored
fix(frame-android): IllegalStateException: The specified child already has a parent (#7948)
1 parent b377eb6 commit ff30c48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ class FragmentCallbacksImplementation implements AndroidFragmentCallbacks {
902902
parentView.addViewInLayout(nativeView, -1, new org.nativescript.widgets.CommonLayoutParams());
903903
}
904904

905-
parentView.removeView(nativeView);
905+
parentView.removeAllViews();
906906
}
907907
}
908908

0 commit comments

Comments
 (0)