Improved error message

pull/214/head
M66B 1 year ago
parent f0e412dcb9
commit 34138b866c

@ -410,7 +410,10 @@ public class FragmentDialogPrint extends FragmentDialogBase {
// at android.app.Activity.startIntentSender(Activity.java:6152)
// at android.print.PrintManager.print(PrintManager.java:538)
// at eu.faircode.email.FragmentDialogPrint$7$2.onPageFinished(SourceFile:127)
Log.unexpectedError(fm, ex, !(ex instanceof ActivityNotFoundException));
boolean report = !(ex instanceof ActivityNotFoundException);
if (ex instanceof ActivityNotFoundException)
ex = new Throwable("A system app or component required for printing is missing", ex);
Log.unexpectedError(fm, ex, report);
} catch (IllegalStateException exex) {
ToastEx.makeText(context, Log.formatThrowable(ex), Toast.LENGTH_LONG).show();
}

Loading…
Cancel
Save