Suppress errors when auto verifying/decrypting

pull/213/head
M66B 1 year ago
parent 47f8f7f69b
commit ebcde39656

@ -8896,6 +8896,10 @@ public class FragmentMessages extends FragmentBase
@Override
protected void onException(Bundle args, Throwable ex) {
boolean auto = args.getBoolean("auto");
if (auto)
return;
if (ex instanceof IllegalArgumentException) {
Log.i(ex);
Snackbar.make(view, ex.getMessage(), Snackbar.LENGTH_LONG)
@ -9426,6 +9430,10 @@ public class FragmentMessages extends FragmentBase
@Override
protected void onException(Bundle args, Throwable ex) {
boolean auto = args.getBoolean("auto");
if (auto)
return;
if (ex instanceof IllegalArgumentException ||
ex instanceof CMSException || ex instanceof KeyChainException)
Snackbar.make(view, ex.getMessage(), Snackbar.LENGTH_LONG)

Loading…
Cancel
Save