diff options
author | Gilles Debunne <debunne@google.com> | 2011-08-04 21:22:30 -0700 |
---|---|---|
committer | Gilles Debunne <debunne@google.com> | 2011-08-23 13:13:54 -0700 |
commit | 6435a56a8c02de98befcc8cd743b2b638cffb327 (patch) | |
tree | 62a5678b5531f53c7b25e920f8f9c6b65f8b510c /core/java/android/text/method | |
parent | defa12e95b8d25db5f3e9a044e83d6fe680b67a3 (diff) | |
download | frameworks_base-6435a56a8c02de98befcc8cd743b2b638cffb327.zip frameworks_base-6435a56a8c02de98befcc8cd743b2b638cffb327.tar.gz frameworks_base-6435a56a8c02de98befcc8cd743b2b638cffb327.tar.bz2 |
Spell checking in TextViews
New UX interactions (the Paste action is no longer displayed after a delay)
suggestionEnabled flag replaced by existing input type flag.
removeSpans fixed in SpannableStringBuilder to always send notifications
SuggestionSpan handled by TextView instead of SpannableStringBuilder
New span update algorithm to correctly handle edition around word boundaries.
Change-Id: I52c01172f19e595fa512e285a565a3fd97c3c50e
Diffstat (limited to 'core/java/android/text/method')
-rw-r--r-- | core/java/android/text/method/WordIterator.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/text/method/WordIterator.java b/core/java/android/text/method/WordIterator.java index af524ee..0433ec4 100644 --- a/core/java/android/text/method/WordIterator.java +++ b/core/java/android/text/method/WordIterator.java @@ -73,6 +73,10 @@ public class WordIterator implements Selection.PositionIterator { } }; + public void forceUpdate() { + mCurrentDirty = true; + } + public void setCharSequence(CharSequence incoming) { // When incoming is different object, move listeners to new sequence // and mark as dirty so we reload contents. |