commit | d28f4be870ea8850a2d4a2fe51333643f16b9ab1 | [log] [tgz] |
---|---|---|
author | Jeff Brown <jeffbrown@google.com> | Wed Jun 02 15:35:46 2010 -0700 |
committer | Jeff Brown <jeffbrown@google.com> | Wed Jun 02 15:36:01 2010 -0700 |
tree | 3275e1bdf086968c859567e90a2373b1b424a7b4 | |
parent | 501b2b400a15a43849ff84c5da4e68d23ed726cf [diff] |
Fixed some minor bugs in MotionEvent recycling. 1. MotionEvent.recycle() never set mRecycled to true so it couldn't actually detect doubly-recycled events (unless the TRACK_RECYCLED_LOCATION debuging flag was enabled). 2. MotionEvent.obtain() did not set mNext to null before returning the event so it would unnecessarily retain a reference to other events in the recycled event linked list until recycled again. Change-Id: I93709c402d260691875f632dfc080a355f85fbb0