am 11f9647e: Merge "Hint text is visible when using center gravity." into honeycomb

* commit '11f9647e03d4e1141bc4312626c8dc9116f1f470':
  Hint text is visible when using center gravity.
This commit is contained in:
Gilles Debunne
2011-01-31 15:32:40 -08:00
committed by Android Git Automerger

View File

@@ -5779,11 +5779,10 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
int want = width - getCompoundPaddingLeft() - getCompoundPaddingRight();
int unpaddedWidth = want;
if (mHorizontallyScrolling) want = VERY_WIDE;
int hintWant = want;
if (mHorizontallyScrolling)
want = VERY_WIDE;
int hintWidth = mHintLayout == null ? hintWant : mHintLayout.getWidth();
if (mLayout == null) {