commit | f75775ea7ff25fc9039ce7994312b29419294902 | [log] [tgz] |
---|---|---|
author | Siyamed Sinir <siyamed@google.com> | Wed May 25 11:16:22 2016 -0700 |
committer | Siyamed Sinir <siyamed@google.com> | Wed May 25 12:01:23 2016 -0700 |
tree | 37dad2582c694d47a1f3bf261b582d3372d9f460 | |
parent | 0f6363e8b3b091508181ea6cef5f5f87a4f75016 [diff] |
Fix TextView layout reuse when maxLines is set When maxLines is set on StaticLayout and the text is wrapped, during onMeasure TextView couldn’t recognize the wrap in the layout and tried to reuse the layout which in turn caused width calculation problems. This CL checks if maxLines is set, and if there is a text cut-off in order to reuse existing layout. Bug: 28468120 Change-Id: Ide43df8512a09112715067cbadf29cc64fd53247