Merge "Update hint text color even when text present" into lmp-mr1-dev

This commit is contained in:
Raph Levien
2014-11-14 20:53:11 +00:00
committed by Android (Google) Code Review

View File

@@ -3634,9 +3634,11 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
}
if (mHintTextColor != null) {
color = mHintTextColor.getColorForState(getDrawableState(), 0);
if (color != mCurHintTextColor && mText.length() == 0) {
if (color != mCurHintTextColor) {
mCurHintTextColor = color;
inval = true;
if (mText.length() == 0) {
inval = true;
}
}
}
if (inval) {