Skip to content

Commit c33208f

Browse files
committed
Spell check the first word of the sentence
Change-Id: I7803d92de8f4ea399cef5c2d1ddf5396d59ef2cf
1 parent 50956b2 commit c33208f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

core/java/android/service/textservice/SpellCheckerService.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -397,14 +397,6 @@ private SentenceTextInfoParams getSplitWords(TextInfo originalTextInfo) {
397397
}
398398
wordStart = wordIterator.getBeginning(wordEnd);
399399
}
400-
if (originalText.length() >= SpellChecker.WORD_ITERATOR_INTERVAL
401-
&& wordItems.size() >= 2) {
402-
if (DBG) {
403-
Log.w(TAG, "Remove possibly divided word: "
404-
+ wordItems.get(0).mTextInfo.getText());
405-
}
406-
wordItems.remove(0);
407-
}
408400
return new SentenceTextInfoParams(originalTextInfo, wordItems);
409401
}
410402

0 commit comments

Comments
 (0)