diff options
| author | 2011-09-15 18:47:49 -0700 | |
|---|---|---|
| committer | 2011-09-15 18:47:49 -0700 | |
| commit | 2a6798ada499dc1dc33db36a15a6ce07e72968ae (patch) | |
| tree | d609a1f5869ecc7ef7ae5e25691edd9f7ecf2f00 | |
| parent | 070e7ee285792a2cc59e7ed1db17832e8c829275 (diff) | |
| parent | bd206d129fdd1777b9f9646a834d7fc342a8941e (diff) | |
Merge "Touch explorer does not perform tap with the right pointer." into ics-factoryrom
| -rw-r--r-- | services/java/com/android/server/accessibility/TouchExplorer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/java/com/android/server/accessibility/TouchExplorer.java b/services/java/com/android/server/accessibility/TouchExplorer.java index aa43bb69899d..5875ee3c436c 100644 --- a/services/java/com/android/server/accessibility/TouchExplorer.java +++ b/services/java/com/android/server/accessibility/TouchExplorer.java @@ -659,8 +659,8 @@ public class TouchExplorer implements Explorer { * @param policyFlags The policy flags associated with the event. */ private void sendActionDownAndUp(MotionEvent prototype, int policyFlags) { - // Tap with the pointer that last went up - we may have inactive pointers. - final int pointerId = mPointerTracker.getLastReceivedUpPointerId(); + // Tap with the pointer that last explored - we may have inactive pointers. + final int pointerId = prototype.getPointerId(prototype.getActionIndex()); final int pointerIdBits = (1 << pointerId); sendMotionEvent(prototype, MotionEvent.ACTION_DOWN, pointerIdBits, policyFlags); sendMotionEvent(prototype, MotionEvent.ACTION_UP, pointerIdBits, policyFlags); |