Fixed a crash in the Notification expandHelper

Bug: 18004384
Change-Id: I3b8e60041c527689722591962f384ea91f4a954a
This commit is contained in:
Selim Cinek
2014-10-28 15:20:34 +01:00
parent 3a9c10a286
commit 1b7f51ebc6

View File

@@ -351,6 +351,9 @@ public class ExpandHelper implements Gefingerpoken {
mVelocityTracker.addMovement(event);
break;
case MotionEvent.ACTION_MOVE:
if (mVelocityTracker == null) {
mVelocityTracker = VelocityTracker.obtain();
}
mVelocityTracker.addMovement(event);
break;
default: