Skip to content

Commit 9ae7631

Browse files
Gilles DebunneAndroid (Google) Code Review
authored andcommitted
Merge "Display list invalidated on hint text change"
2 parents 870084d + 626c316 commit 9ae7631

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/java/android/widget/TextView.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3472,6 +3472,9 @@ public final void setHint(CharSequence hint) {
34723472
if (mText.length() == 0) {
34733473
invalidate();
34743474
}
3475+
3476+
// Invalidate display list if hint will be used
3477+
if (mText.length() == 0 && mHint != null) mTextDisplayListIsValid = false;
34753478
}
34763479

34773480
/**

0 commit comments

Comments
 (0)