OSDN Git Service

Guarded against ArrayOutOfBounds
authorFabian Kozynski <kozynski@google.com>
Mon, 15 Oct 2018 18:25:18 +0000 (14:25 -0400)
committerFabian Kozynski <kozynski@google.com>
Wed, 17 Oct 2018 13:28:20 +0000 (09:28 -0400)
commit1fda7cba7e0d9d82f2459ea1e3595d72fb3faf9f
tree852fbd7574d5b45a7f64da274ce28099d11ac89b
parent9f364bd2067d59b9e806e5a9c052e272ab7b3886
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
packages/SystemUI/src/com/android/systemui/qs/customize/TileAdapter.java