Merge "Fix longpress handler in notifications." into jb-dev

This commit is contained in:
Daniel Sandler
2012-05-16 10:12:23 -07:00
committed by Android (Google) Code Review

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;