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

Commit 8567ca3a authored by Carlos Martinez Romero's avatar Carlos Martinez Romero
Browse files

Deprecated method with unused param.

Deprecated an old method with an unused param and add a new method that does not have the unused param.

Test: Ran "CtsGraphicsTestCases"
Bug: 216813597
Change-Id: I2782314abe718c7986bddd648163ea4d5eb00d5e
parent 5e309ba6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -16286,7 +16286,8 @@ package android.graphics {
    method public void arcTo(@NonNull android.graphics.RectF, float, float);
    method public void arcTo(float, float, float, float, float, float, boolean);
    method public void close();
    method public void computeBounds(@NonNull android.graphics.RectF, boolean);
    method @Deprecated public void computeBounds(@NonNull android.graphics.RectF, boolean);
    method public void computeBounds(@NonNull android.graphics.RectF);
    method public void conicTo(float, float, float, float, float);
    method public void cubicTo(float, float, float, float, float, float);
    method @NonNull public android.graphics.Path.FillType getFillType();
+14 −0
Original line number Diff line number Diff line
@@ -293,9 +293,23 @@ public class Path {
     *
     * @param bounds Returns the computed bounds of the path's control points.
     * @param exact This parameter is no longer used.
     *
     * @deprecated use computeBounds(RectF) instead
     */
    @Deprecated
    @SuppressWarnings({"UnusedDeclaration"})
    public void computeBounds(@NonNull RectF bounds, boolean exact) {
        computeBounds(bounds);
    }

    /**
     * Compute the bounds of the control points of the path, and write the
     * answer into bounds. If the path contains 0 or 1 points, the bounds is
     * set to (0,0,0,0)
     *
     * @param bounds Returns the computed bounds of the path's control points.
     */
    public void computeBounds(@NonNull RectF bounds) {
        nComputeBounds(mNativePath, bounds);
    }