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
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.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 @@
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);