commit | 076f17375b9530d40767b990016a83a9fcd18bf2 | [log] [tgz] |
---|---|---|
author | Jeff Brown <jeffbrown@google.com> | Fri Jun 08 16:40:01 2012 -0700 |
committer | Jeff Brown <jeffbrown@google.com> | Fri Jun 08 16:40:01 2012 -0700 |
tree | dca49bd7b16f1dc548716a182a2a029a12218f0d | |
parent | 5ebf04cce420ca8f32270245189c4d71f28cfd27 [diff] |
Remove edge slop handling from ScaleGestureDetector. The edge slop code could violate invariants of ScaleGestureDetector, such as the assumption that if an ACTION_POINTER_DOWN is observed or if getPointerCount() >= 2, then there must be at least two active pointers to choose from. But due to the edge slop handling, it was possible for findNewActiveIndex to return -1 in this case, resulting in a crash. Bug: 6613154 Change-Id: I4e08e38a49ab27dac1be9484e19de086bc43624a