am c5fccd01: am 2a6798ad: Merge "Touch explorer does not perform tap with the right pointer." into ics-factoryrom

* commit 'c5fccd01258715597227bc44a3e0a4f69dd8971a':
  Touch explorer does not perform tap with the right pointer.
This commit is contained in:
Svetoslav Ganov
2011-09-15 18:52:49 -07:00
committed by Android Git Automerger

View File

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