AI 143830: am: CL 143815 am: CL 143758 Fixes #1749387. When a client of VelocityTracker obtains an instance from the pool, actually remove the object from the pool. Otherwise, several clients can share the same VelocityTracker which can lead to really weird side effects (including concurrency and UI issues.)

Original author: romainguy
  Merged from: //branches/cupcake/...
  Original author: android-build
  Merged from: //branches/donutburger/...

Automated import of CL 143830
This commit is contained in:
Romain Guy
2009-03-31 14:50:15 -07:00
committed by The Android Open Source Project
parent bed30e1b6e
commit 7474a5acbe

View File

@@ -58,6 +58,7 @@ public final class VelocityTracker {
VelocityTracker vt = mPool[0];
if (vt != null) {
vt.clear();
mPool[0] = null;
return vt;
}
return new VelocityTracker();