Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Fix wrongly positioned pasted text in the URL bar. Fixes #2300. (#2305)
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro authored and bluemarvin committed Nov 18, 2019
1 parent 23b599a commit b262362
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,7 @@ public void onAction(String action) {
ClipData.Item item = clipboard.getPrimaryClip().getItemAt(0);
if (selectionValid) {
mBinding.urlEditText.setText(StringUtils.removeRange(mBinding.urlEditText.getText().toString(), startSelection, endSelection));
mBinding.urlEditText.setSelection(startSelection);
}
if (item != null && item.getText() != null) {
mBinding.urlEditText.getText().insert(mBinding.urlEditText.getSelectionStart(), item.getText());
Expand Down

0 comments on commit b262362

Please sign in to comment.