diff options
author | John Reck <jreck@google.com> | 2011-09-19 11:47:52 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2011-09-19 11:53:21 -0700 |
commit | bd546311aba89c7d8afc34a8722ce50462d38de0 (patch) | |
tree | 4b6e29c65a99da045560bc85f408baa0ade4de81 /src/com/android | |
parent | 4cf094b8253d69de3eedd2870c39f60962aa2f8f (diff) | |
download | packages_apps_Browser-bd546311aba89c7d8afc34a8722ce50462d38de0.zip packages_apps_Browser-bd546311aba89c7d8afc34a8722ce50462d38de0.tar.gz packages_apps_Browser-bd546311aba89c7d8afc34a8722ce50462d38de0.tar.bz2 |
Fix long pressing children in BrowserWebView
Bug: 5340573
Caused because showContextMenu happens before the path for actionmode.
Since none of the children in WebView have a context menu, we can just
prevent BrowserWebView from ever showing a context menu for a child.
Change-Id: I62644682e5ee43dd3c9e8c155c7403611ae6f355
Diffstat (limited to 'src/com/android')
-rw-r--r-- | src/com/android/browser/BrowserWebView.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/browser/BrowserWebView.java b/src/com/android/browser/BrowserWebView.java index 2042ccf..b763cf1 100644 --- a/src/com/android/browser/BrowserWebView.java +++ b/src/com/android/browser/BrowserWebView.java @@ -121,4 +121,9 @@ public class BrowserWebView extends WebView { mOnScrollChangedListener = listener; } + @Override + public boolean showContextMenuForChild(View originalView) { + return false; + } + } |