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

Commit 6ad394ac authored by Chet Haase's avatar Chet Haase
Browse files

Updated Outline.offset() docs to clarify behavior

Bug: 202063656
Test: N/A, but added CTS sub-test for untested behavior
Change-Id: I86dc415879b23b92b9283c822094d4b811cd796f
parent 695b53f1
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -312,7 +312,10 @@ public final class Outline {
    }

    /**
     * Offsets the Outline by (dx,dy)
     * Offsets the Outline by (dx,dy). Offsetting is cumulative, so additional calls to
     * offset() will add to previous offset values. Offset only applies to the current
     * geometry (setRect(), setPath(), etc.); setting new geometry resets any existing
     * offset.
     */
    public void offset(int dx, int dy) {
        if (mMode == MODE_ROUND_RECT) {