Loading core/java/android/view/ViewGroup.java +9 −1 Original line number Original line 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 * @hide */ */ public boolean getChildVisibleRect( 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)); (int) Math.ceil(rect.right), (int) Math.ceil(rect.bottom)); if ((forceParentCheck || rectIsVisible) && mParent != null) { if ((forceParentCheck || rectIsVisible) && mParent != null) { if (mParent instanceof ViewGroup) { rectIsVisible = ((ViewGroup) mParent) .getChildVisibleRect(this, r, offset, forceParentCheck); } else { rectIsVisible = mParent.getChildVisibleRect(this, r, offset); rectIsVisible = mParent.getChildVisibleRect(this, r, offset); } } } return rectIsVisible; return rectIsVisible; } } Loading Loading
core/java/android/view/ViewGroup.java +9 −1 Original line number Original line 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 * @hide */ */ public boolean getChildVisibleRect( 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)); (int) Math.ceil(rect.right), (int) Math.ceil(rect.bottom)); if ((forceParentCheck || rectIsVisible) && mParent != null) { if ((forceParentCheck || rectIsVisible) && mParent != null) { if (mParent instanceof ViewGroup) { rectIsVisible = ((ViewGroup) mParent) .getChildVisibleRect(this, r, offset, forceParentCheck); } else { rectIsVisible = mParent.getChildVisibleRect(this, r, offset); rectIsVisible = mParent.getChildVisibleRect(this, r, offset); } } } return rectIsVisible; return rectIsVisible; } } Loading