Merge "Not create context menu when mouse right click outside list/grid items" into klp-dev

This commit is contained in:
Alan Viverette
2013-08-12 20:47:39 +00:00
committed by Android (Google) Code Review

View File

@@ -3485,7 +3485,8 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
mLastY = Integer.MIN_VALUE; mLastY = Integer.MIN_VALUE;
} }
if (performButtonActionOnTouchDown(ev) && (mTouchMode == TOUCH_MODE_DOWN)) { if (mTouchMode == TOUCH_MODE_DOWN && mMotionPosition != INVALID_POSITION
&& performButtonActionOnTouchDown(ev)) {
removeCallbacks(mPendingCheckForTap); removeCallbacks(mPendingCheckForTap);
} }
} }