mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
5bca6849c5
commit
2deb39b19a
|
@ -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 New Issue