mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-09 10:33:41 +02:00
Show why signature was not valid, if possible
This commit is contained in:
@@ -4850,6 +4850,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||
}
|
||||
} catch (CMSException ex) {
|
||||
Log.w(ex);
|
||||
args.putString("reason", ex.getMessage());
|
||||
}
|
||||
}
|
||||
if (result != null)
|
||||
@@ -4984,9 +4985,15 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
||||
boolean valid = args.getBoolean("valid");
|
||||
final ArrayList<String> trace = args.getStringArrayList("trace");
|
||||
|
||||
if (cert == null)
|
||||
Snackbar.make(view, R.string.title_signature_invalid, Snackbar.LENGTH_LONG).show();
|
||||
else
|
||||
if (cert == null) {
|
||||
String message;
|
||||
String reason = args.getString("reason");
|
||||
if (TextUtils.isEmpty(reason))
|
||||
message = getString(R.string.title_signature_invalid);
|
||||
else
|
||||
message = getString(R.string.title_signature_invalid_reason, reason);
|
||||
Snackbar.make(view, message, Snackbar.LENGTH_LONG).show();
|
||||
} else
|
||||
try {
|
||||
EntityCertificate record = EntityCertificate.from(cert, null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user