aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/WordComposer.java
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2010-07-08 15:41:17 -0700
committerAmith Yamasani <yamasani@google.com>2010-07-09 14:08:01 -0700
commitb71547f2d065a17b268d1dbc896daab1820141a6 (patch)
tree423ed457ab59988a040607634d8f36499544f0f3 /java/src/com/android/inputmethod/latin/WordComposer.java
parentdaf88d35e72e754a96bf5940d5374038faf87b43 (diff)
downloadlatinime-b71547f2d065a17b268d1dbc896daab1820141a6.tar.gz
latinime-b71547f2d065a17b268d1dbc896daab1820141a6.tar.xz
latinime-b71547f2d065a17b268d1dbc896daab1820141a6.zip
Fix some bugs in editing feature
- Fixed caching of words - some StringBuilders were being recycled while also being cached. Making copies now. - Fixed regression in revert - don't reset the word composer after saving the accepted word. - Removed flicker when cursoring through a word - delay the abortCorrection() until we need to and do the correction as an atomic operation. - Fixed replacing of "selected" words (double-tap to select a word) Still to do: - Remove flicker on highlighting a word - may need a framework change - Don't remove spans on text that's already in the text field - may require a framework change. - Figure out what to do about the punctuations that share the suggestion strip when in correction mode.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/WordComposer.java')
-rw-r--r--java/src/com/android/inputmethod/latin/WordComposer.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/WordComposer.java b/java/src/com/android/inputmethod/latin/WordComposer.java
index e2573a0a9..1ea74847a 100644
--- a/java/src/com/android/inputmethod/latin/WordComposer.java
+++ b/java/src/com/android/inputmethod/latin/WordComposer.java
@@ -55,7 +55,9 @@ public class WordComposer {
mTypedWord = new StringBuilder(copy.mTypedWord);
mCapsCount = copy.mCapsCount;
mAutoCapitalized = copy.mAutoCapitalized;
+ mIsCapitalized = copy.mIsCapitalized;
}
+
/**
* Clear out the keys registered so far.
*/