summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/view/PieMenu.java
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2010-12-15 17:17:57 -0800
committerJohn Reck <jreck@google.com>2010-12-15 17:28:50 -0800
commit4be9bc7f7f38723ae8c4ca1d3203de212cf214bd (patch)
treeea5bbe61b458994d3824e15148bf459cc35efef4 /src/com/android/browser/view/PieMenu.java
parentbf9c4ee33fe87881793f84091274dc59c16f3881 (diff)
downloadpackages_apps_Browser-4be9bc7f7f38723ae8c4ca1d3203de212cf214bd.zip
packages_apps_Browser-4be9bc7f7f38723ae8c4ca1d3203de212cf214bd.tar.gz
packages_apps_Browser-4be9bc7f7f38723ae8c4ca1d3203de212cf214bd.tar.bz2
Inject ACTION_DOWN when QC closed
When quick controls is automatically closed because the user's finger is beyond the menu, inject an ACTION_DOWN so that new events are sent to the WebView for scrolling Change-Id: I95177594a313659aedadaa0912b87cb0a4c037fe
Diffstat (limited to 'src/com/android/browser/view/PieMenu.java')
-rw-r--r--src/com/android/browser/view/PieMenu.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/browser/view/PieMenu.java b/src/com/android/browser/view/PieMenu.java
index 6b06a3d..5185adb 100644
--- a/src/com/android/browser/view/PieMenu.java
+++ b/src/com/android/browser/view/PieMenu.java
@@ -30,6 +30,7 @@ import android.graphics.RectF;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
+import android.view.ViewGroup;
import android.widget.FrameLayout;
import java.util.ArrayList;
@@ -360,6 +361,10 @@ public class PieMenu extends FrameLayout {
if (polar.y > mRadius + 2 * mRadiusInc) {
show(false);
deselect();
+ evt.setAction(MotionEvent.ACTION_DOWN);
+ if (getParent() != null) {
+ ((ViewGroup) getParent()).dispatchTouchEvent(evt);
+ }
return false;
}
View v = findView(polar);