Hint text is visible when using center gravity.

Bug 3379366

Non left aligned text uses the VERY_WIDE width, but the hint text
was not.

Change-Id: I7327958336acf7fe16bb89bb8b7bf9b869167d53
diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java
index eee042a..da0625ae 100644
--- a/core/java/android/widget/TextView.java
+++ b/core/java/android/widget/TextView.java
@@ -5772,11 +5772,10 @@
 
         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) {