am 45c925a9: am 52cb409a: Don\'t resize debug array if production

* commit '45c925a9be45ddfd9901c44f1e2dec46d22ff84e':
  Don't resize debug array if production
main
Satoshi Kataoka 2013-05-15 12:47:07 -07:00 committed by Android Git Automerger
commit 41b21c470f
1 changed files with 3 additions and 1 deletions

View File

@ -285,7 +285,9 @@ final class GesturePreviewTrail {
mEventTimes.setLength(newSize); mEventTimes.setLength(newSize);
mXCoordinates.setLength(newSize); mXCoordinates.setLength(newSize);
mYCoordinates.setLength(newSize); mYCoordinates.setLength(newSize);
mPointTypes.setLength(newSize); if (DBG_SHOW_POINTS) {
mPointTypes.setLength(newSize);
}
// The start index of the last segment of the stroke // The start index of the last segment of the stroke
// {@link mLastInterpolatedDrawIndex} should also be updated because all array // {@link mLastInterpolatedDrawIndex} should also be updated because all array
// elements have just been shifted for compaction or been zeroed. // elements have just been shifted for compaction or been zeroed.