Suppress errors when auto verifying/decrypting

This commit is contained in:
M66B 2023-07-07 11:07:18 +02:00
parent 47f8f7f69b
commit ebcde39656
1 changed files with 8 additions and 0 deletions

View File

@ -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)