commit | 77c7a9eba24cfaad7e632420e4bd8c346fa56399 | [log] [tgz] |
---|---|---|
author | Justin Klaassen <justinklaassen@google.com> | Mon Jun 06 11:22:43 2016 -0700 |
committer | Justin Klaassen <justinklaassen@google.com> | Mon Jun 06 19:25:01 2016 +0000 |
tree | 69df7d1d59654c925bb8eef484201685d0a917f3 | |
parent | b132d921bb64fc69145d040f18f504be6a2f0029 [diff] |
Defer adapter updates while RV is computing layout Bug: 29149374 It appears that the ItemAnimator#isRunning callback can happen at times when RV is computing its layout and hence adapter updates are not allowed. We now defer adapter updates using a handler in this case and also take care to preserve the ordering of updates. Change-Id: I8ef243f5a689755dc2ab665471610e0501c72bcc