summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@android.com>2012-05-16 13:04:06 -0400
committerDaniel Sandler <dsandler@android.com>2012-05-16 13:04:06 -0400
commit491d3a9bfab844bf8587545bb1cdab76d2cd4b96 (patch)
tree655c0f7f30e6c47da45538ff6566c66d672a9493
parent559146fc98ba0c1a272c37e78c38f7a9f145997a (diff)
downloadframeworks_base-491d3a9bfab844bf8587545bb1cdab76d2cd4b96.zip
frameworks_base-491d3a9bfab844bf8587545bb1cdab76d2cd4b96.tar.gz
frameworks_base-491d3a9bfab844bf8587545bb1cdab76d2cd4b96.tar.bz2
Fix longpress handler in notifications.
Bug: 6452142 Change-Id: Iaa8e189cd1536f2826d5fe3721ead9bc33397711
-rw-r--r--packages/SystemUI/src/com/android/systemui/SwipeHelper.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/SwipeHelper.java b/packages/SystemUI/src/com/android/systemui/SwipeHelper.java
index 6584c7d..2d65dd6 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;