Skip to content

Commit 626c316

Browse files
author
Gilles Debunne
committed
Display list invalidated on hint text change
Bug 5993119 Change-Id: I750e73cb5c26e2aaa2a88a80cf35c4d471c30403
1 parent 5f9d991 commit 626c316

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)