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