mirror of https://github.com/M66B/FairEmail.git
Suppress errors when auto verifying/decrypting
This commit is contained in:
parent
47f8f7f69b
commit
ebcde39656
|
@ -8896,6 +8896,10 @@ public class FragmentMessages extends FragmentBase
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onException(Bundle args, Throwable ex) {
|
protected void onException(Bundle args, Throwable ex) {
|
||||||
|
boolean auto = args.getBoolean("auto");
|
||||||
|
if (auto)
|
||||||
|
return;
|
||||||
|
|
||||||
if (ex instanceof IllegalArgumentException) {
|
if (ex instanceof IllegalArgumentException) {
|
||||||
Log.i(ex);
|
Log.i(ex);
|
||||||
Snackbar.make(view, ex.getMessage(), Snackbar.LENGTH_LONG)
|
Snackbar.make(view, ex.getMessage(), Snackbar.LENGTH_LONG)
|
||||||
|
@ -9426,6 +9430,10 @@ public class FragmentMessages extends FragmentBase
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onException(Bundle args, Throwable ex) {
|
protected void onException(Bundle args, Throwable ex) {
|
||||||
|
boolean auto = args.getBoolean("auto");
|
||||||
|
if (auto)
|
||||||
|
return;
|
||||||
|
|
||||||
if (ex instanceof IllegalArgumentException ||
|
if (ex instanceof IllegalArgumentException ||
|
||||||
ex instanceof CMSException || ex instanceof KeyChainException)
|
ex instanceof CMSException || ex instanceof KeyChainException)
|
||||||
Snackbar.make(view, ex.getMessage(), Snackbar.LENGTH_LONG)
|
Snackbar.make(view, ex.getMessage(), Snackbar.LENGTH_LONG)
|
||||||
|
|
Loading…
Reference in New Issue