diff options
| author | Gilles Debunne <debunne@google.com> | 2012-02-07 16:08:39 -0800 |
|---|---|---|
| committer | Gilles Debunne <debunne@google.com> | 2012-02-07 17:11:17 -0800 |
| commit | 2e85274d26c52f8df517e7e327eb78340c8c552f (patch) | |
| tree | dc949d3cd1033df2565ec5deaca24e10ce661429 /core/java | |
| parent | dc210ade0ad4770c5294320453f8ddfbfcbaf943 (diff) | |
Invalidate text display list when text properties change.
Bug 5887530, Bug 5945886, Bug 5904371
Added more invalidation when other properties of the text are changed.
Change-Id: I618dbaae9da64bf72dd29e444215b7de1c644573
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/widget/TextView.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java index 164bc64c711f..53107cbd8b53 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -1205,6 +1205,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener if (imm != null) imm.restartInput(this); } + mTextDisplayListIsValid = false; prepareCursorControllers(); // start or stop the cursor blinking as appropriate @@ -2310,6 +2311,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener public void setHighlightColor(int color) { if (mHighlightColor != color) { mHighlightColor = color; + mTextDisplayListIsValid = false; invalidate(); } } @@ -2330,6 +2332,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener mShadowDx = dx; mShadowDy = dy; + mTextDisplayListIsValid = false; invalidate(); } @@ -2821,6 +2824,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener } } if (inval) { + mTextDisplayListIsValid = false; invalidate(); } } |
