diff options
| author | Gilles Debunne <debunne@google.com> | 2011-10-27 14:38:27 -0700 |
|---|---|---|
| committer | Gilles Debunne <debunne@google.com> | 2011-10-31 11:38:40 -0700 |
| commit | e9b82808d412fa1b87954dd88579b92d0b4ab0e2 (patch) | |
| tree | 2e6ea1cce763e780604a299fec397b51a340b11c /core/java/android/widget/TextView.java | |
| parent | c86b8730e8c0ee930af5151cc47e6822408ac5ed (diff) | |
| download | frameworks_base-e9b82808d412fa1b87954dd88579b92d0b4ab0e2.zip frameworks_base-e9b82808d412fa1b87954dd88579b92d0b4ab0e2.tar.gz frameworks_base-e9b82808d412fa1b87954dd88579b92d0b4ab0e2.tar.bz2 | |
No threading issues in SpellChecker.
SpellChecker is exclusively called from the main UI thread and
there are no concurrency issues. As a result, the TextView's
wordIterator can safely be re-used in the parse() method.
Also reset the pool of SpellParsers on language change.
Change-Id: I1cc8a2750f21233754f006e40a81622730030ec8
Diffstat (limited to 'core/java/android/widget/TextView.java')
| -rw-r--r-- | core/java/android/widget/TextView.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java index e08f15a..0430202 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -8938,6 +8938,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener } void onLocaleChanged() { + removeMisspelledSpans((Editable) mText); // Will be re-created on demand in getWordIterator with the proper new locale mWordIterator = null; } |
