Don't resize debug array if production
Bug: 8556775 Change-Id: I46a10f8dc938cab493933f0f2b4e1f7779b24f6f
This commit is contained in:
parent
b2c4c73064
commit
52cb409ac2
1 changed files with 3 additions and 1 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue