Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc8ecca7 authored by Amin Shaikh's avatar Amin Shaikh
Browse files

Add View#mClipBounds to ViewDebug.

Bug: 72543200
Test: verified hierarchyviewer displays clipBounds property
Change-Id: I4b7d0a40f836acadbc2cfcae07f6270b32c1f47d
parent af2397da
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@
package android.view;
import static android.view.accessibility.AccessibilityEvent.CONTENT_CHANGE_TYPE_UNDEFINED;
import static java.lang.Math.max;
import android.animation.AnimatorInflater;
@@ -3975,6 +3974,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
    /**
     * Current clip bounds. to which all drawing of this view are constrained.
     */
    @ViewDebug.ExportedProperty(category = "drawing")
    Rect mClipBounds = null;
    private boolean mLastIsOpaque;
@@ -26979,6 +26979,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        stream.addProperty("drawing:scaleY", getScaleY());
        stream.addProperty("drawing:pivotX", getPivotX());
        stream.addProperty("drawing:pivotY", getPivotY());
        stream.addProperty("drawing:clipBounds",
                mClipBounds == null ? null : mClipBounds.toString());
        stream.addProperty("drawing:opaque", isOpaque());
        stream.addProperty("drawing:alpha", getAlpha());
        stream.addProperty("drawing:transitionAlpha", getTransitionAlpha());