summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrace Kloba <klobag@google.com>2010-01-18 15:21:38 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-01-18 15:21:38 -0800
commitd79d1c72991e587294432e80d091e3ae26a0c103 (patch)
tree9fb78c850e4f6514a83cccb197e819edd5605a74
parentf080a5adf6d59bade46815ee605a3829e5c3ab89 (diff)
parentd4d1d6eca0ad195c1ab64c0f4dd38ae328b2b042 (diff)
downloadframeworks_base-d79d1c72991e587294432e80d091e3ae26a0c103.zip
frameworks_base-d79d1c72991e587294432e80d091e3ae26a0c103.tar.gz
frameworks_base-d79d1c72991e587294432e80d091e3ae26a0c103.tar.bz2
Merge "If ZoomButttonsController detects more than one pointer, give up the control. This should enable the View behind it, like WebView, will always get the multi-pointer events even when ZoomButtonsController is up." into eclair
-rw-r--r--core/java/android/widget/ZoomButtonsController.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/widget/ZoomButtonsController.java b/core/java/android/widget/ZoomButtonsController.java
index e55fbb8..c683e71 100644
--- a/core/java/android/widget/ZoomButtonsController.java
+++ b/core/java/android/widget/ZoomButtonsController.java
@@ -546,6 +546,11 @@ public class ZoomButtonsController implements View.OnTouchListener {
public boolean onTouch(View v, MotionEvent event) {
int action = event.getAction();
+ if (event.getPointerCount() > 1) {
+ // ZoomButtonsController doesn't handle mutitouch. Give up control.
+ return false;
+ }
+
if (mReleaseTouchListenerOnUp) {
// The controls were dismissed but we need to throw away all events until the up
if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_CANCEL) {