Merge change 5390 into donut

* changes:
  When mPreventDrag is true, don't respond to long press. This should prevent the context menu popping up in the Map sites.
This commit is contained in:
Android (Google) Code Review
2009-06-25 13:18:24 -07:00

View File

@ -4571,9 +4571,11 @@ public class WebView extends AbsoluteLayout
break; break;
} }
case SWITCH_TO_LONGPRESS: { case SWITCH_TO_LONGPRESS: {
if (!mPreventDrag) {
mTouchMode = TOUCH_DONE_MODE; mTouchMode = TOUCH_DONE_MODE;
performLongClick(); performLongClick();
updateTextEntry(); updateTextEntry();
}
break; break;
} }
case SWITCH_TO_ENTER: case SWITCH_TO_ENTER: