am af5c0118: Merge "Fix issue #6447773: Pulse does not run in JB (NPE in GestureDetector.onTouchEvent)" into jb-dev
* commit 'af5c01185bb9f76fd6cbdc87344f1d9b60ebdd8c': Fix issue #6447773: Pulse does not run in JB (NPE in GestureDetector.onTouchEvent)
This commit is contained in:
@@ -585,8 +585,12 @@ public class GestureDetector {
|
||||
}
|
||||
// Hold the event we obtained above - listeners may have changed the original.
|
||||
mPreviousUpEvent = currentUpEvent;
|
||||
mVelocityTracker.recycle();
|
||||
mVelocityTracker = null;
|
||||
if (mVelocityTracker != null) {
|
||||
// This may have been cleared when we called out to the
|
||||
// application above.
|
||||
mVelocityTracker.recycle();
|
||||
mVelocityTracker = null;
|
||||
}
|
||||
mIsDoubleTapping = false;
|
||||
mHandler.removeMessages(SHOW_PRESS);
|
||||
mHandler.removeMessages(LONG_PRESS);
|
||||
|
||||
Reference in New Issue
Block a user