commit | e2f2ff730ed20153aa006d655888190763c16d5c | [log] [tgz] |
---|---|---|
author | Dake Gu <dake@google.com> | Tue Feb 16 16:12:33 2016 -0800 |
committer | Dake Gu <dake@google.com> | Wed Feb 17 11:36:54 2016 -0800 |
tree | 9c4d213974797849e3f89f1333903d35b1dd55c7 | |
parent | 24638bd44562b7eb53234e36b9a6e86a28c0c1b2 [diff] |
Fix crash: Dont fetch items in onMeasure when HasFixedSize is true With new RV change, HasFixedSize=true hehavior has been defined as: RV size is not determined by child size. So when HasFixedSize is true, the items passed to onMeasure() are no longer valid and should not be used. Though HasFixedSize=true is generally not allowed when WRAP_CONTENT is used, add extra protection. Bug 27202689 Change-Id: Ic1e30674588227988621f7802692a1f12eeac3d7