commit | a75ca911e26945e0b326e7b70dd12378ace80270 | [log] [tgz] |
---|---|---|
author | Dake Gu <dake@google.com> | Mon Mar 23 12:17:22 2015 -0700 |
committer | Qiwen Zhao <zhao@google.com> | Wed Mar 25 21:48:47 2015 -0700 |
tree | 3eb1187d19d11689c77249fe5a82594e69dddc0c | |
parent | c4c44fde6e748d0d3d2d838e9215baa3b4a00477 [diff] |
RecyclerView: fix ArrayIndexOutOfBoundException in removeAndRecycleScrapInt App implemented onViewDetachedFromWindow() might force "AddAnimation" stop and change internal mRecycler.mAttachedScrap list, then next loop getScrapViewAt() may access out of bound index. Accessing the array in reverse to avoid the problem. Bug 19892594 Change-Id: Ie3a12c60d8135cc2cc048aa0f74f29821e5f708a