am 3952078a: Extract fewer characters in getWordRangeAtCursor().

* commit '3952078a919caf9a44d271642122c413dbd487f9':
  Extract fewer characters in getWordRangeAtCursor().
main
Tom Ouyang 2015-04-09 19:12:26 +00:00 committed by Android Git Automerger
commit efa968acd9
1 changed files with 2 additions and 2 deletions

View File

@ -619,9 +619,9 @@ public final class RichInputConnection implements PrivateCommandPerformer {
if (!isConnected()) {
return null;
}
final CharSequence before = mIC.getTextBeforeCursor(Constants.EDITOR_CONTENTS_CACHE_SIZE,
final CharSequence before = mIC.getTextBeforeCursor(LOOKBACK_CHARACTER_NUM,
InputConnection.GET_TEXT_WITH_STYLES);
final CharSequence after = mIC.getTextAfterCursor(Constants.EDITOR_CONTENTS_CACHE_SIZE,
final CharSequence after = mIC.getTextAfterCursor(LOOKBACK_CHARACTER_NUM,
InputConnection.GET_TEXT_WITH_STYLES);
if (before == null || after == null) {
return null;