Loading core/java/android/view/ViewOverlay.java +9 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,7 @@ */ package android.view; import android.animation.LayoutTransition; import android.content.Context; import android.graphics.Canvas; import android.graphics.Rect; Loading Loading @@ -169,6 +170,14 @@ public class ViewOverlay { child.offsetTopAndBottom(parentLocation[1] - hostViewLocation[1]); } parent.removeView(child); if (parent.getLayoutTransition() != null) { // LayoutTransition will cause the child to delay removal - cancel it parent.getLayoutTransition().cancel(LayoutTransition.DISAPPEARING); } // fail-safe if view is still attached for any reason if (child.getParent() != null) { child.mParent = null; } } super.addView(child); } Loading Loading
core/java/android/view/ViewOverlay.java +9 −0 Original line number Diff line number Diff line Loading @@ -15,6 +15,7 @@ */ package android.view; import android.animation.LayoutTransition; import android.content.Context; import android.graphics.Canvas; import android.graphics.Rect; Loading Loading @@ -169,6 +170,14 @@ public class ViewOverlay { child.offsetTopAndBottom(parentLocation[1] - hostViewLocation[1]); } parent.removeView(child); if (parent.getLayoutTransition() != null) { // LayoutTransition will cause the child to delay removal - cancel it parent.getLayoutTransition().cancel(LayoutTransition.DISAPPEARING); } // fail-safe if view is still attached for any reason if (child.getParent() != null) { child.mParent = null; } } super.addView(child); } Loading