am b494b304: Merge "Fix off by one bug in gesture trail drawing"

* commit 'b494b30453f7b5f3c3c10d3e9c5b406f722025c4':
  Fix off by one bug in gesture trail drawing
main
Tadashi G. Takaoka 2012-12-06 12:03:31 -08:00 committed by Android Git Automerger
commit 1e296da6d3
1 changed files with 1 additions and 1 deletions

View File

@ -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];