diff options
-rw-r--r-- | src/com/android/mail/ui/SwipeHelper.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/mail/ui/SwipeHelper.java b/src/com/android/mail/ui/SwipeHelper.java index 1b869d5a4..100c8be36 100644 --- a/src/com/android/mail/ui/SwipeHelper.java +++ b/src/com/android/mail/ui/SwipeHelper.java @@ -208,6 +208,10 @@ public class SwipeHelper { View view = mCallback.getChildAtPosition(ev); if (view instanceof SwipeableItemView) { mCurrView = (SwipeableItemView) view; + } else { + // If the touched item is not a swipeable one, clean the cache in + // mCurrView to make sure nothing will be swiped for this action + mCurrView = null; } mVelocityTracker.clear(); if (mCurrView != null) { |