mirror of https://github.com/M66B/FairEmail.git
Small improvement
This commit is contained in:
parent
4e2ccf7312
commit
c7fb523222
|
@ -7257,14 +7257,15 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
|
||||
int start = tvBody.getSelectionStart();
|
||||
int end = tvBody.getSelectionEnd();
|
||||
if (start == end)
|
||||
return null;
|
||||
|
||||
if (start < 0)
|
||||
start = 0;
|
||||
if (end < 0)
|
||||
end = 0;
|
||||
|
||||
if (start == end)
|
||||
return null;
|
||||
|
||||
if (start > end) {
|
||||
int tmp = start;
|
||||
start = end;
|
||||
|
|
Loading…
Reference in New Issue