commit | 52e4814f46230835ed48d7561de8359b79b978cd | [log] [tgz] |
---|---|---|
author | Jin Cao <jinyan@google.com> | Wed Jun 04 18:01:20 2014 -0700 |
committer | Jin Cao <jinyan@google.com> | Wed Jun 04 18:01:20 2014 -0700 |
tree | 61e574135a88c81555b11ea975bec9c1f89d5736 | |
parent | 0efdc53cd0d040c1a27a7d39003916e54e284be2 [diff] |
Ensure that invalidate is called on main thread Sometimes the chips span is constructed on a background task and then rendered on the UI at a later time. For those cases, the async loader callback will happen on a non-main thread. This causes invalidate to crash since it can't be called from non-main threads. Change-Id: Icfdfb84ceae74032ca0b51a872fbf02fe6a72418