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

Commit b494b304 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka Committed by Android (Google) Code Review
Browse files

Merge "Fix off by one bug in gesture trail drawing"

parents d582c38b 8c93e513
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -159,7 +159,7 @@ final class GesturePreviewTrail {
            float r1 = maxWidth / 2.0f;
            // Initialize bounds rectangle.
            outBoundsRect.set(p1x, p1y, p1x, p1y);
            for (int i = startIndex + 1; i < trailSize - 1; i++) {
            for (int i = startIndex + 1; i < trailSize; i++) {
                final int elapsedTime = sinceDown - eventTimes[i];
                final int p2x = getXCoordValue(xCoords[i]);
                final int p2y = yCoords[i];