commit | 6b82a0843e0cec1092d3660d32dbb6f99fed2c00 | [log] [tgz] |
---|---|---|
author | Hyunyoung Song <hyunyoungs@google.com> | Thu Oct 04 12:00:36 2018 -0700 |
committer | Hyunyoung Song <hyunyoungs@google.com> | Thu Oct 04 12:41:00 2018 -0700 |
tree | 53b8c44dc21831ab97cbb4b52c9c0bc1376c23d9 | |
parent | ff2d0d0a9eb51ea10262e51e87fd9fb1992900aa [diff] |
Fix issue where pointer id was being used to set as action index Bug: 117157432 Bug: 116744159 Context: In vary rare case, Pointer id can be higher than MotionEvent.getPointerCount. When I was fabricating ACTION_POINTER_DOWN event, I was using pointer id instead of index to create MotionEvent. This resulted in stack trace as seen in the bug. Change-Id: I802c2a45a274f0dda5984f1d266334fc8b6b0bea