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