commit | c33208fe72662fd89b75e996dbd495237a0021d4 | [log] [tgz] |
---|---|---|
author | satok <satok@google.com> | Mon May 07 20:19:18 2012 +0900 |
committer | satok <satok@google.com> | Mon May 07 20:19:18 2012 +0900 |
tree | 6ded0d33ec26a7b3d2a5ec2df5ad392a5ff60144 | |
parent | 50956b2dc473126fd04341388df9f244fd22f77e [diff] |
Spell check the first word of the sentence Change-Id: I7803d92de8f4ea399cef5c2d1ddf5396d59ef2cf
diff --git a/core/java/android/service/textservice/SpellCheckerService.java b/core/java/android/service/textservice/SpellCheckerService.java index c579e6e..77b22ed 100644 --- a/core/java/android/service/textservice/SpellCheckerService.java +++ b/core/java/android/service/textservice/SpellCheckerService.java
@@ -397,14 +397,6 @@ } wordStart = wordIterator.getBeginning(wordEnd); } - if (originalText.length() >= SpellChecker.WORD_ITERATOR_INTERVAL - && wordItems.size() >= 2) { - if (DBG) { - Log.w(TAG, "Remove possibly divided word: " - + wordItems.get(0).mTextInfo.getText()); - } - wordItems.remove(0); - } return new SentenceTextInfoParams(originalTextInfo, wordItems); }