Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fbe0e8f4 authored by Raph Levien's avatar Raph Levien Committed by Android Git Automerger
Browse files

am 25f7c4b9: Merge "Update hint text color even when text present" into lmp-mr1-dev

* commit '25f7c4b9':
  Update hint text color even when text present
parents be1ad50b 25f7c4b9
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -3634,11 +3634,13 @@ 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;
                if (mText.length() == 0) {
                    inval = true;
                }
            }
        }
        if (inval) {
            // Text needs to be redrawn with the new color
            if (mEditor != null) mEditor.invalidateTextDisplayList();