OSDN Git Service

Request re-layout after setText if layout width is 0
authorSiyamed Sinir <siyamed@google.com>
Thu, 5 May 2016 23:48:47 +0000 (16:48 -0700)
committerSiyamed Sinir <siyamed@google.com>
Thu, 5 May 2016 23:48:52 +0000 (16:48 -0700)
commitb4b8740aed4753152729f1630b4241dedcadc98d
tree37e9210cbb56185c20231f83749c456e3615571d
parent19f981e2e1f69f8159c4250f36d48279cb02749e
Request re-layout after setText if layout width is 0

When TextView is in a layout with weight params (i.e. LinearLayout) and
the width is set to 0, do not try to prevent requestLayout.

Bug: 27995311
Change-Id: I6f98f0ac8260bfa98147157f5b73e87308c7efab
core/java/android/widget/TextView.java