Small improvements

pull/214/head
M66B 12 months ago
parent e686c966f7
commit 33b67f02f2

@ -60,6 +60,7 @@ import com.google.android.material.snackbar.Snackbar;
import org.jsoup.nodes.Document; import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element; import org.jsoup.nodes.Element;
import java.io.IOException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -687,7 +688,7 @@ public class FragmentAnswer extends FragmentBase {
@Override @Override
protected void onException(Bundle args, Throwable ex) { protected void onException(Bundle args, Throwable ex) {
Throwable exex = new Throwable("LanguageTool", ex); Throwable exex = new Throwable("LanguageTool", ex);
Log.unexpectedError(getParentFragmentManager(), exex, false); Log.unexpectedError(getParentFragmentManager(), exex, !(ex instanceof IOException));
} }
}.execute(this, args, "answer:lt"); }.execute(this, args, "answer:lt");
} }

@ -3018,7 +3018,7 @@ public class FragmentCompose extends FragmentBase {
protected void onException(Bundle args, Throwable ex) { protected void onException(Bundle args, Throwable ex) {
if (!silent) { if (!silent) {
Throwable exex = new Throwable("LanguageTool", ex); Throwable exex = new Throwable("LanguageTool", ex);
Log.unexpectedError(getParentFragmentManager(), exex, false); Log.unexpectedError(getParentFragmentManager(), exex, !(ex instanceof IOException));
} }
} }
}.execute(this, args, "compose:lt"); }.execute(this, args, "compose:lt");

Loading…
Cancel
Save