Merge "Fixed a crash in the Notification expandHelper" into lmp-mr1-dev

This commit is contained in:
Selim Cinek
2014-10-31 15:03:42 +00:00
committed by Android (Google) Code Review

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: