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;
}
case SWITCH_TO_LONGPRESS: {
mTouchMode = TOUCH_DONE_MODE;
performLongClick();
updateTextEntry();
if (!mPreventDrag) {
mTouchMode = TOUCH_DONE_MODE;
performLongClick();
updateTextEntry();
}
break;
}
case SWITCH_TO_ENTER: