mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-14 04:53:22 +02:00
Improved error message
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user