Small improvement

This commit is contained in:
M66B 2023-03-31 17:32:06 +02:00
parent 4e2ccf7312
commit c7fb523222
1 changed files with 3 additions and 2 deletions

View File

@ -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;