mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-21 21:57:19 +00:00
Added error logging
This commit is contained in:
parent
351ae13234
commit
5930e5e561
3 changed files with 3 additions and 0 deletions
|
@ -1297,6 +1297,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
|||
ActivityView.REQUEST_DECRYPT,
|
||||
null, 0, 0, 0, null);
|
||||
} catch (IntentSender.SendIntentException ex) {
|
||||
Log.e(ex);
|
||||
Helper.unexpectedError(ActivityView.this, ActivityView.this, ex);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -765,6 +765,7 @@ public class FragmentCompose extends FragmentEx {
|
|||
ActivityCompose.REQUEST_ENCRYPT,
|
||||
null, 0, 0, 0, null);
|
||||
} catch (IntentSender.SendIntentException ex) {
|
||||
Log.e(ex);
|
||||
Helper.unexpectedError(getContext(), getViewLifecycleOwner(), ex);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -135,6 +135,7 @@ public class Helper {
|
|||
} catch (ActivityNotFoundException ex) {
|
||||
Toast.makeText(context, context.getString(R.string.title_no_viewer, uri.toString()), Toast.LENGTH_LONG).show();
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
Helper.unexpectedError(context, owner, ex);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue