mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-15 08:29:24 +00:00
Small improvement
This commit is contained in:
parent
4e2ccf7312
commit
c7fb523222
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue