diff options
| author | 2012-06-26 16:39:02 -0700 | |
|---|---|---|
| committer | 2012-06-26 16:39:02 -0700 | |
| commit | 7f3b379e995651a6ff76d02dddca87b3acdc157e (patch) | |
| tree | 9b27d432bc1733dd425aaaac10ce29e5627791ae | |
| parent | 9e608c12186d308fb1711e8824901fdf931a3a96 (diff) | |
Fix issue #6706369: Sometimes the "App info" popup shows...
...even though I don't long press
When you start scrolling from a point between two notification
items, only the first down goes to SwipeHelper.onInterceptTouchEvent(),
and the following events go to SwipeHelper.onTouchEvent(). However
when we call SwipeHelper.onTouchEvent(), we immediately bail if we are
not in the drag state, so we never clear the pending long press event.
Bug: 6706369
Change-Id: Icc46fba62fe7ee334d8d62ac39195d7c3aeff705
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/SwipeHelper.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/SwipeHelper.java b/packages/SystemUI/src/com/android/systemui/SwipeHelper.java index 2d65dd6a27c9..ceb86540d6df 100644 --- a/packages/SystemUI/src/com/android/systemui/SwipeHelper.java +++ b/packages/SystemUI/src/com/android/systemui/SwipeHelper.java @@ -322,6 +322,9 @@ public class SwipeHelper implements Gefingerpoken { } if (!mDragging) { + // We are not doing anything, make sure the long press callback + // is not still ticking like a bomb waiting to go off. + removeLongPressCallback(); return false; } |