diff options
author | Romain Guy <> | 2009-03-31 15:15:47 -0700 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-31 15:15:47 -0700 |
commit | fb43fea68a00b7b147992b52b86305f6fbc1548e (patch) | |
tree | d6928eaf005568c9bdf2c2e24055f243bd68a3b4 | |
parent | 617f877c06c82584a38f41bb60d836e08c5e3bda (diff) | |
download | frameworks_base-fb43fea68a00b7b147992b52b86305f6fbc1548e.zip frameworks_base-fb43fea68a00b7b147992b52b86305f6fbc1548e.tar.gz frameworks_base-fb43fea68a00b7b147992b52b86305f6fbc1548e.tar.bz2 |
AI 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/...
Automated import of CL 143815
-rw-r--r-- | core/java/android/view/VelocityTracker.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/view/VelocityTracker.java b/core/java/android/view/VelocityTracker.java index c80167e..3951b2c 100644 --- a/core/java/android/view/VelocityTracker.java +++ b/core/java/android/view/VelocityTracker.java @@ -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(); |