mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix off by one bug in gesture trail drawing
Bug: 7594165 Change-Id: Ia3f7dcee71db91e39c40022b19e7b07c5d4488c8
This commit is contained in:
parent
2b6a1fed76
commit
8c93e513ad
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user