mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-04 08:08:16 +02:00
Fixed inserting links in some situations
This commit is contained in:
@@ -1519,6 +1519,8 @@ public class FragmentCompose extends FragmentBase {
|
||||
|
||||
Bundle args = new Bundle();
|
||||
args.putParcelable("uri", uri);
|
||||
args.putInt("start", etBody.getSelectionStart());
|
||||
args.putInt("end", etBody.getSelectionEnd());
|
||||
|
||||
FragmentDialogLink fragment = new FragmentDialogLink();
|
||||
fragment.setArguments(args);
|
||||
@@ -2674,6 +2676,9 @@ public class FragmentCompose extends FragmentBase {
|
||||
|
||||
private void onLinkSelected(Bundle args) {
|
||||
String link = args.getString("link");
|
||||
int start = args.getInt("start");
|
||||
int end = args.getInt("end");
|
||||
etBody.setSelection(start, end);
|
||||
StyleHelper.apply(R.id.menu_link, etBody, link);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user