mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 17:57:16 +00:00
parent
a737083c9e
commit
eb477f6245
1 changed files with 5 additions and 11 deletions
|
@ -8104,10 +8104,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
Log.i("PGP signature result=" + sresult);
|
||||
|
||||
if (sresult == RESULT_NO_SIGNATURE) {
|
||||
if (!EntityAttachment.PGP_SIGNATURE.equals(encrypt)) {
|
||||
if (!EntityAttachment.PGP_SIGNATURE.equals(encrypt))
|
||||
args.putString("sigresult", context.getString(R.string.title_signature_none));
|
||||
args.putBoolean("sigtoast", true);
|
||||
}
|
||||
} else if (sresult == RESULT_VALID_KEY_CONFIRMED || sresult == RESULT_VALID_KEY_UNCONFIRMED) {
|
||||
List<String> users = sigResult.getConfirmedUserIds();
|
||||
String text;
|
||||
|
@ -8158,14 +8156,10 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
protected void onExecuted(Bundle args, PendingIntent pi) {
|
||||
if (args.containsKey("sigresult")) {
|
||||
String text = args.getString("sigresult");
|
||||
if (args.getBoolean("sigtoast"))
|
||||
ToastEx.makeText(getContext(), text, Toast.LENGTH_LONG).show();
|
||||
else {
|
||||
Snackbar sb = Snackbar.make(view, text, Snackbar.LENGTH_LONG)
|
||||
.setGestureInsetBottomIgnored(true);
|
||||
Helper.setSnackbarLines(sb, 7);
|
||||
sb.show();
|
||||
}
|
||||
Snackbar sb = Snackbar.make(view, text, Snackbar.LENGTH_LONG)
|
||||
.setGestureInsetBottomIgnored(true);
|
||||
Helper.setSnackbarLines(sb, 7);
|
||||
sb.show();
|
||||
}
|
||||
|
||||
if (pi != null)
|
||||
|
|
Loading…
Reference in a new issue