diff options
author | Selim Cinek <cinek@google.com> | 2014-10-28 15:20:34 +0100 |
---|---|---|
committer | Selim Cinek <cinek@google.com> | 2014-10-31 12:37:43 +0100 |
commit | 1b7f51ebc66fbb2cbe8a468790bbbfd397d66964 (patch) | |
tree | 375449f76cd1ce72d19569d7875f568a8d5cd4df | |
parent | 3a9c10a2861404f1be9f06a3a54ae18803c81d1d (diff) | |
download | frameworks_base-1b7f51ebc66fbb2cbe8a468790bbbfd397d66964.zip frameworks_base-1b7f51ebc66fbb2cbe8a468790bbbfd397d66964.tar.gz frameworks_base-1b7f51ebc66fbb2cbe8a468790bbbfd397d66964.tar.bz2 |
Fixed a crash in the Notification expandHelper
Bug: 18004384
Change-Id: I3b8e60041c527689722591962f384ea91f4a954a
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/ExpandHelper.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/ExpandHelper.java b/packages/SystemUI/src/com/android/systemui/ExpandHelper.java index 0f8fe1c..d42ac61 100644 --- a/packages/SystemUI/src/com/android/systemui/ExpandHelper.java +++ b/packages/SystemUI/src/com/android/systemui/ExpandHelper.java @@ -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: |