Loading core/java/android/view/ViewGroup.java +9 −1 Original line number Diff line number Diff line Loading @@ -5482,6 +5482,9 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager } /** * @param forceParentCheck true to guarantee that this call will propagate to all ancestors, * false otherwise * * @hide */ public boolean getChildVisibleRect( Loading Loading @@ -5541,8 +5544,13 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager (int) Math.ceil(rect.right), (int) Math.ceil(rect.bottom)); if ((forceParentCheck || rectIsVisible) && mParent != null) { if (mParent instanceof ViewGroup) { rectIsVisible = ((ViewGroup) mParent) .getChildVisibleRect(this, r, offset, forceParentCheck); } else { rectIsVisible = mParent.getChildVisibleRect(this, r, offset); } } return rectIsVisible; } Loading Loading
core/java/android/view/ViewGroup.java +9 −1 Original line number Diff line number Diff line Loading @@ -5482,6 +5482,9 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager } /** * @param forceParentCheck true to guarantee that this call will propagate to all ancestors, * false otherwise * * @hide */ public boolean getChildVisibleRect( Loading Loading @@ -5541,8 +5544,13 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager (int) Math.ceil(rect.right), (int) Math.ceil(rect.bottom)); if ((forceParentCheck || rectIsVisible) && mParent != null) { if (mParent instanceof ViewGroup) { rectIsVisible = ((ViewGroup) mParent) .getChildVisibleRect(this, r, offset, forceParentCheck); } else { rectIsVisible = mParent.getChildVisibleRect(this, r, offset); } } return rectIsVisible; } Loading