Loading core/java/android/view/View.java +0 −5 Original line number Diff line number Diff line Loading @@ -13055,11 +13055,6 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal ViewDebug.trace(this, ViewDebug.HierarchyTraceType.REQUEST_LAYOUT); } if (getAccessibilityNodeProvider() != null) { throw new IllegalStateException("Views with AccessibilityNodeProvider" + " can't have children."); } mPrivateFlags |= FORCE_LAYOUT; mPrivateFlags |= INVALIDATED; Loading core/java/android/view/ViewGroup.java +9 −0 Original line number Diff line number Diff line Loading @@ -2669,6 +2669,15 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager return child.draw(canvas, this, drawingTime); } @Override public void requestLayout() { if (mChildrenCount > 0 && getAccessibilityNodeProvider() != null) { throw new IllegalStateException("Views with AccessibilityNodeProvider" + " can't have children."); } super.requestLayout(); } /** * * @param enabled True if children should be drawn with layers, false otherwise. Loading Loading
core/java/android/view/View.java +0 −5 Original line number Diff line number Diff line Loading @@ -13055,11 +13055,6 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal ViewDebug.trace(this, ViewDebug.HierarchyTraceType.REQUEST_LAYOUT); } if (getAccessibilityNodeProvider() != null) { throw new IllegalStateException("Views with AccessibilityNodeProvider" + " can't have children."); } mPrivateFlags |= FORCE_LAYOUT; mPrivateFlags |= INVALIDATED; Loading
core/java/android/view/ViewGroup.java +9 −0 Original line number Diff line number Diff line Loading @@ -2669,6 +2669,15 @@ public abstract class ViewGroup extends View implements ViewParent, ViewManager return child.draw(canvas, this, drawingTime); } @Override public void requestLayout() { if (mChildrenCount > 0 && getAccessibilityNodeProvider() != null) { throw new IllegalStateException("Views with AccessibilityNodeProvider" + " can't have children."); } super.requestLayout(); } /** * * @param enabled True if children should be drawn with layers, false otherwise. Loading