Skip to content

Commit da2e8a8

Browse files
committed
fix(frame-android): child already has a parent. Replace removeView with removeAllViews
1 parent 548992e commit da2e8a8

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
@@ -910,7 +910,7 @@ class FragmentCallbacksImplementation implements AndroidFragmentCallbacks {
910910
parentView.addViewInLayout(nativeView, -1, new org.nativescript.widgets.CommonLayoutParams());
911911
}
912912

913-
parentView.removeView(nativeView);
913+
parentView.removeAllViews();
914914
}
915915
}
916916

0 commit comments

Comments
 (0)