Merge "Fix NullPointerException in GestureDetector"
This commit is contained in:
@@ -839,8 +839,10 @@ public class GestureDetector {
|
||||
mHandler.removeMessages(SHOW_PRESS);
|
||||
mHandler.removeMessages(LONG_PRESS);
|
||||
mHandler.removeMessages(TAP);
|
||||
mVelocityTracker.recycle();
|
||||
mVelocityTracker = null;
|
||||
if (mVelocityTracker != null) {
|
||||
mVelocityTracker.recycle();
|
||||
mVelocityTracker = null;
|
||||
}
|
||||
mIsDoubleTapping = false;
|
||||
mStillDown = false;
|
||||
mAlwaysInTapRegion = false;
|
||||
|
||||
Reference in New Issue
Block a user