Small improvement

pull/212/head
M66B 2 years ago
parent 4e2ccf7312
commit c7fb523222

@ -7257,14 +7257,15 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
int start = tvBody.getSelectionStart(); int start = tvBody.getSelectionStart();
int end = tvBody.getSelectionEnd(); int end = tvBody.getSelectionEnd();
if (start == end)
return null;
if (start < 0) if (start < 0)
start = 0; start = 0;
if (end < 0) if (end < 0)
end = 0; end = 0;
if (start == end)
return null;
if (start > end) { if (start > end) {
int tmp = start; int tmp = start;
start = end; start = end;

Loading…
Cancel
Save