Fix longpress handler in notifications.

Bug: 6452142
Change-Id: Iaa8e189cd1536f2826d5fe3721ead9bc33397711
This commit is contained in:
Daniel Sandler
2012-05-16 13:04:06 -04:00
parent 559146fc98
commit 491d3a9bfa

View File

@@ -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;