1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-30 19:56:10 +00:00

Remark translate mark on error

This commit is contained in:
M66B 2022-03-21 15:37:26 +01:00
parent d7162cfb03
commit 401ded742f

View file

@ -8168,6 +8168,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
@Override @Override
protected void onException(Bundle args, Throwable ex) { protected void onException(Bundle args, Throwable ex) {
SpannableStringBuilder ssb = new SpannableStringBuilderEx(tvText.getText());
ssb.removeSpan(mark);
tvText.setText(ssb);
Throwable exex = new Throwable("DeepL", ex); Throwable exex = new Throwable("DeepL", ex);
ToastEx.makeText(context, Log.formatThrowable(exex), Toast.LENGTH_LONG).show(); ToastEx.makeText(context, Log.formatThrowable(exex), Toast.LENGTH_LONG).show();
} }