diff options
author | Gilles Debunne <debunne@google.com> | 2011-09-28 18:51:23 -0700 |
---|---|---|
committer | Gilles Debunne <debunne@google.com> | 2011-09-28 19:04:30 -0700 |
commit | d5ea0a1bc2fae7c6084b0c5cc9b68a925a0f50f6 (patch) | |
tree | 16dd95503193a82e267a4af83b2483fcf2844381 /core/java/android/text/method | |
parent | b062e81e3a16af43db3619d721aa522c137d1aa9 (diff) | |
download | frameworks_base-d5ea0a1bc2fae7c6084b0c5cc9b68a925a0f50f6.zip frameworks_base-d5ea0a1bc2fae7c6084b0c5cc9b68a925a0f50f6.tar.gz frameworks_base-d5ea0a1bc2fae7c6084b0c5cc9b68a925a0f50f6.tar.bz2 |
Bug 5250788: EditText gets slower has the entered text gets longer
Profiling showed that the bottle neck was in the word iterator.
Now initializing the word iteerator to only a window around the region
of interest to reduce the text analysis.
Change-Id: Ibfa4952cbf52a1b36726f965143ac7a6dc63673e
Diffstat (limited to 'core/java/android/text/method')
-rw-r--r-- | core/java/android/text/method/WordIterator.java | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/core/java/android/text/method/WordIterator.java b/core/java/android/text/method/WordIterator.java index 0433ec4..af524ee 100644 --- a/core/java/android/text/method/WordIterator.java +++ b/core/java/android/text/method/WordIterator.java @@ -73,10 +73,6 @@ 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. |