OSDN Git Service

Store Tile in view tag, not position
authorjackqdyulei <jackqdyulei@google.com>
Mon, 24 Oct 2016 21:28:55 +0000 (14:28 -0700)
committerjackqdyulei <jackqdyulei@google.com>
Mon, 24 Oct 2016 21:44:37 +0000 (14:44 -0700)
commita44fdda4384dcee10f3f3f33c927b6580af7efed
tree9beab8cb4ac7f5ba171d2d394ce49b3d07f65d73
parent4eddfb804c836ea2bedc6c673953aef67113381b
Store Tile in view tag, not position

The position(used to find the tile) is not up-to-date when recyclerview
changes, so store tile instead.

Bug: 32370624
Test: make -j40 SettingsTests
Change-Id: I10d29b3137ecb1c37b6a8468c6f2709b8497caa6
src/com/android/settings/dashboard/DashboardAdapter.java
tests/app/src/com/android/settings/tests/DashboardAdapterTest.java [new file with mode: 0644]