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

Commit b262362

Browse files
MortimerGorobluemarvin
authored andcommitted
Fix wrongly positioned pasted text in the URL bar. Fixes #2300. (#2305)
1 parent 23b599a commit b262362

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/src/common/shared/org/mozilla/vrbrowser/ui/views/NavigationURLBar.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,6 +601,7 @@ public void onAction(String action) {
601601
ClipData.Item item = clipboard.getPrimaryClip().getItemAt(0);
602602
if (selectionValid) {
603603
mBinding.urlEditText.setText(StringUtils.removeRange(mBinding.urlEditText.getText().toString(), startSelection, endSelection));
604+
mBinding.urlEditText.setSelection(startSelection);
604605
}
605606
if (item != null && item.getText() != null) {
606607
mBinding.urlEditText.getText().insert(mBinding.urlEditText.getSelectionStart(), item.getText());

0 commit comments

Comments
 (0)