Skip to content

Commit 7f3b379

Browse files
author
Dianne Hackborn
committed
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
1 parent 9e608c1 commit 7f3b379

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/SystemUI/src/com/android/systemui/SwipeHelper.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,9 @@ public boolean onTouchEvent(MotionEvent ev) {
322322
}
323323

324324
if (!mDragging) {
325+
// We are not doing anything, make sure the long press callback
326+
// is not still ticking like a bomb waiting to go off.
327+
removeLongPressCallback();
325328
return false;
326329
}
327330

0 commit comments

Comments
 (0)