Small improvements

This commit is contained in:
M66B
2022-12-12 19:48:11 +01:00
parent d7baa92556
commit 5433691b5e
4 changed files with 7 additions and 11 deletions

View File

@@ -133,7 +133,7 @@ public class FragmentDialogTranslate extends FragmentDialogBase {
@Override
protected void onException(Bundle args, Throwable ex) {
tvText.setText(ex.toString());
Log.unexpectedError(getParentFragmentManager(), ex);
}
}.execute(FragmentDialogTranslate.this, args, "translate:all");
}
@@ -309,8 +309,7 @@ public class FragmentDialogTranslate extends FragmentDialogBase {
ssb.removeSpan(mark);
tvText.setText(ssb);
Throwable exex = new Throwable("DeepL", ex);
ToastEx.makeText(context, Log.formatThrowable(exex), Toast.LENGTH_LONG).show();
Log.unexpectedError(getParentFragmentManager(), ex);
}
}.execute(FragmentDialogTranslate.this, args, "paragraph:translate");
}