ViewGroup: make sure all child views have valid LayoutParams

This commit is contained in:
Julian Winkler
2023-09-01 13:16:01 +02:00
parent ceb5df9d39
commit 9ad77d5b62
2 changed files with 20 additions and 9 deletions

View File

@@ -27,10 +27,6 @@ public class FrameLayout extends ViewGroup {
@Override
protected native void native_removeView(long widget, long child);
public void addView(View child, int index) {
addView(child, index, null);
}
@Override
public LayoutParams generateLayoutParams(AttributeSet attrs) {
return new LayoutParams(getContext(), attrs);