Skip to content

Commit 491d3a9

Browse files
committed
Fix longpress handler in notifications.
Bug: 6452142 Change-Id: Iaa8e189cd1536f2826d5fe3721ead9bc33397711
1 parent 559146f commit 491d3a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ public static void invalidateGlobalRegion(View view, RectF childBounds) {
186186
public void removeLongPressCallback() {
187187
if (mWatchLongPress != null) {
188188
mHandler.removeCallbacks(mWatchLongPress);
189+
mWatchLongPress = null;
189190
}
190191
}
191192

@@ -245,6 +246,7 @@ public void run() {
245246
mCurrView = null;
246247
mCurrAnimView = null;
247248
mLongPressSent = false;
249+
removeLongPressCallback();
248250
break;
249251
}
250252
return mDragging;

0 commit comments

Comments
 (0)