Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit efa968ac authored by Tom Ouyang's avatar Tom Ouyang Committed by Android Git Automerger
Browse files

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

* commit '3952078a':
  Extract fewer characters in getWordRangeAtCursor().
parents b9b6e287 3952078a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;