You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
ViewGroup: remove detached views
detached views should not be part of the view hierarchy
This commit is contained in:
@@ -102,6 +102,7 @@ public class ViewGroup extends View implements ViewParent, ViewManager {
|
||||
}
|
||||
|
||||
public void detachViewFromParent(int index) {
|
||||
removeViewAt(index);
|
||||
}
|
||||
|
||||
public void attachViewToParent(View view, int index, LayoutParams params) {
|
||||
@@ -109,7 +110,6 @@ public class ViewGroup extends View implements ViewParent, ViewManager {
|
||||
}
|
||||
|
||||
protected void removeDetachedView(View child, boolean animate) {
|
||||
removeView(child);
|
||||
}
|
||||
|
||||
protected native void native_addView(long widget, long child, int index, LayoutParams params);
|
||||
|
||||
Reference in New Issue
Block a user