mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Prevent crash
This commit is contained in:
parent
5bca6849c5
commit
2deb39b19a
1 changed files with 2 additions and 0 deletions
|
@ -227,6 +227,8 @@ public class FragmentDialogTranslate extends FragmentDialogBase {
|
|||
|
||||
private void translate(TextView widget, Spannable buffer, MotionEvent event) {
|
||||
int off = Helper.getOffset(widget, buffer, event);
|
||||
if (off < 0)
|
||||
return;
|
||||
|
||||
int start = off;
|
||||
while (start > 0 && buffer.charAt(start - 1) != '\n')
|
||||
|
|
Loading…
Reference in a new issue