Skip to content

Commit c5fccd0

Browse files
sganovAndroid Git Automerger
authored andcommitted
am 2a6798a: Merge "Touch explorer does not perform tap with the right pointer." into ics-factoryrom
* commit '2a6798ada499dc1dc33db36a15a6ce07e72968ae': Touch explorer does not perform tap with the right pointer.
2 parents 86c2fe4 + 2a6798a commit c5fccd0

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)