Skip to content

Commit

Permalink
Do not report a cursor location if there is no active selection (flut…
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-simmons authored Dec 8, 2017
1 parent 1cdaab8 commit a2f488a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ public InputConnection createInputConnection(FlutterView view, EditorInfo outAtt
outAttrs.imeOptions |= enterAction;

InputConnectionAdaptor connection = new InputConnectionAdaptor(view, mClient, mFlutterChannel, mEditable);
outAttrs.initialSelStart = Math.max(Selection.getSelectionStart(mEditable), 0);
outAttrs.initialSelEnd = Math.max(Selection.getSelectionEnd(mEditable), 0);
outAttrs.initialSelStart = Selection.getSelectionStart(mEditable);
outAttrs.initialSelEnd = Selection.getSelectionEnd(mEditable);

return connection;
}
Expand Down

0 comments on commit a2f488a

Please sign in to comment.