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

automerge: 3804ebf

* commit '3804ebfbf9764a32d3d7e79ac95f3995db5e5117':
  Fixed a crash in the Notification expandHelper
This commit is contained in:
Selim Cinek
2014-10-31 15:10:07 +00:00
committed by android-build-merger

View File

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