Skip to content

Commit 2a6798a

Browse files
sganovAndroid (Google) Code Review
authored andcommitted
Merge "Touch explorer does not perform tap with the right pointer." into ics-factoryrom
2 parents 070e7ee + bd206d1 commit 2a6798a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/java/com/android/server/accessibility/TouchExplorer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -659,8 +659,8 @@ private void sendMotionEventStripInactivePointers(MotionEvent prototype, int pol
659659
* @param policyFlags The policy flags associated with the event.
660660
*/
661661
private void sendActionDownAndUp(MotionEvent prototype, int policyFlags) {
662-
// Tap with the pointer that last went up - we may have inactive pointers.
663-
final int pointerId = mPointerTracker.getLastReceivedUpPointerId();
662+
// Tap with the pointer that last explored - we may have inactive pointers.
663+
final int pointerId = prototype.getPointerId(prototype.getActionIndex());
664664
final int pointerIdBits = (1 << pointerId);
665665
sendMotionEvent(prototype, MotionEvent.ACTION_DOWN, pointerIdBits, policyFlags);
666666
sendMotionEvent(prototype, MotionEvent.ACTION_UP, pointerIdBits, policyFlags);

0 commit comments

Comments
 (0)