am 2a6798ad: 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.
This commit is contained in:
@@ -659,8 +659,8 @@ public class TouchExplorer implements Explorer {
|
|||||||
* @param policyFlags The policy flags associated with the event.
|
* @param policyFlags The policy flags associated with the event.
|
||||||
*/
|
*/
|
||||||
private void sendActionDownAndUp(MotionEvent prototype, int policyFlags) {
|
private void sendActionDownAndUp(MotionEvent prototype, int policyFlags) {
|
||||||
// Tap with the pointer that last went up - we may have inactive pointers.
|
// Tap with the pointer that last explored - we may have inactive pointers.
|
||||||
final int pointerId = mPointerTracker.getLastReceivedUpPointerId();
|
final int pointerId = prototype.getPointerId(prototype.getActionIndex());
|
||||||
final int pointerIdBits = (1 << pointerId);
|
final int pointerIdBits = (1 << pointerId);
|
||||||
sendMotionEvent(prototype, MotionEvent.ACTION_DOWN, pointerIdBits, policyFlags);
|
sendMotionEvent(prototype, MotionEvent.ACTION_DOWN, pointerIdBits, policyFlags);
|
||||||
sendMotionEvent(prototype, MotionEvent.ACTION_UP, pointerIdBits, policyFlags);
|
sendMotionEvent(prototype, MotionEvent.ACTION_UP, pointerIdBits, policyFlags);
|
||||||
|
|||||||
Reference in New Issue
Block a user