From 491d3a9bfab844bf8587545bb1cdab76d2cd4b96 Mon Sep 17 00:00:00 2001 From: Daniel Sandler Date: Wed, 16 May 2012 13:04:06 -0400 Subject: [PATCH] Fix longpress handler in notifications. Bug: 6452142 Change-Id: Iaa8e189cd1536f2826d5fe3721ead9bc33397711 --- packages/SystemUI/src/com/android/systemui/SwipeHelper.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/SwipeHelper.java b/packages/SystemUI/src/com/android/systemui/SwipeHelper.java index 6584c7df35776..2d65dd6a27c9a 100644 --- a/packages/SystemUI/src/com/android/systemui/SwipeHelper.java +++ b/packages/SystemUI/src/com/android/systemui/SwipeHelper.java @@ -186,6 +186,7 @@ public class SwipeHelper implements Gefingerpoken { public void removeLongPressCallback() { if (mWatchLongPress != null) { mHandler.removeCallbacks(mWatchLongPress); + mWatchLongPress = null; } } @@ -245,6 +246,7 @@ public class SwipeHelper implements Gefingerpoken { mCurrView = null; mCurrAnimView = null; mLongPressSent = false; + removeLongPressCallback(); break; } return mDragging;