OSDN Git Service

Cross fade escalation card when content changes.
authorFan Zhang <zhfan@google.com>
Wed, 13 Jul 2016 16:49:03 +0000 (09:49 -0700)
committerFan Zhang <zhfan@google.com>
Wed, 13 Jul 2016 17:23:52 +0000 (10:23 -0700)
commit5df6364d89107d923bb937e8fc7be763cf4f6d8a
treed2660cc1a475db544981ff5a5e289b588467468e
parent3cd686d4a938a2ac876ae70586fbaffadc065461
Cross fade escalation card when content changes.

Fixes: 30079520

Whenever escalation card needs to change content:
- Instead of rebuilding entire data set, rebuild just escalation data.
- Instead of notify entire data set change, only notify the position
  change for escalation card.
This triggers the cross-fade animation in RecyclerView's
DefaultItemAnimator.

Change-Id: Ia19593d852fa6a1c366aecf9330d8274d7295e85
src/com/android/settings/dashboard/SupportItemAdapter.java