commit | 1fda7cba7e0d9d82f2459ea1e3595d72fb3faf9f | [log] [tgz] |
---|---|---|
author | Fabian Kozynski <kozynski@google.com> | Mon Oct 15 14:25:18 2018 -0400 |
committer | Fabian Kozynski <kozynski@google.com> | Wed Oct 17 09:28:20 2018 -0400 |
tree | 852fbd7574d5b45a7f64da274ce28099d11ac89b | |
parent | 9f364bd2067d59b9e806e5a9c052e272ab7b3886 [diff] |
Guarded against ArrayOutOfBounds In some monkey tests, getAdapterPosition returns -1 (for example, if the ViewHolder is not bound). In this case, we shouldn't proceed with the moving operation. Test: manual Change-Id: I1eccc2c60136ddf5cc0175d88a3fddbe1d2a5a97 Fixes: 117769352 Fixes: 116871219