commit | 586c5961d373c3104a02228731e70f025ae8edee | [log] [tgz] |
---|---|---|
author | Aurimas Liutikas <aurimas@google.com> | Wed May 25 13:43:10 2016 -0700 |
committer | Aurimas Liutikas <aurimas@google.com> | Wed May 25 13:56:04 2016 -0700 |
tree | 2c36be1750680844b3be3abcd2aa1d16436e28e2 | |
parent | 19eb7d0a9f998f670eb967fcf9c0b62764a522cd [diff] |
Fix refresh animation if setRefreshing is called before onLayout. The issue was happening as mOriginalOffsetTop and mCurrentTargetOffsetTop were only initialized in onLayout, causing animation to fail. Moving their initialization to the constructor as we know the size of the mCircleView even before layout. Bug: 26293980 Change-Id: I53dd7e3168ce4edd02c64207dc11074d72c630b9