|
|
|
@ -2057,7 +2057,7 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
|
List<String> emails = new ArrayList<>();
|
|
|
|
|
for (int i = 0; i < recipients.size(); i++) {
|
|
|
|
|
InternetAddress recipient = (InternetAddress) recipients.get(i);
|
|
|
|
|
String email = recipient.getAddress().toLowerCase();
|
|
|
|
|
String email = recipient.getAddress().toLowerCase(Locale.ROOT);
|
|
|
|
|
if (!emails.contains(email))
|
|
|
|
|
emails.add(email);
|
|
|
|
|
}
|
|
|
|
@ -2677,7 +2677,7 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
|
Intent intent = new Intent(OpenPgpApi.ACTION_GET_KEY);
|
|
|
|
|
intent.putExtra(OpenPgpApi.EXTRA_KEY_ID, pgpSignKeyId);
|
|
|
|
|
intent.putExtra(OpenPgpApi.EXTRA_MINIMIZE, true);
|
|
|
|
|
intent.putExtra(OpenPgpApi.EXTRA_MINIMIZE_USER_ID, identity.email.toLowerCase());
|
|
|
|
|
intent.putExtra(OpenPgpApi.EXTRA_MINIMIZE_USER_ID, identity.email.toLowerCase(Locale.ROOT));
|
|
|
|
|
intent.putExtra(OpenPgpApi.EXTRA_REQUEST_ASCII_ARMOR, true);
|
|
|
|
|
intent.putExtra(BuildConfig.APPLICATION_ID, largs);
|
|
|
|
|
return intent;
|
|
|
|
@ -2697,7 +2697,7 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
|
Intent intent = new Intent(OpenPgpApi.ACTION_GET_KEY);
|
|
|
|
|
intent.putExtra(OpenPgpApi.EXTRA_KEY_ID, pgpSignKeyId);
|
|
|
|
|
intent.putExtra(OpenPgpApi.EXTRA_MINIMIZE, true);
|
|
|
|
|
intent.putExtra(OpenPgpApi.EXTRA_MINIMIZE_USER_ID, identity.email.toLowerCase());
|
|
|
|
|
intent.putExtra(OpenPgpApi.EXTRA_MINIMIZE_USER_ID, identity.email.toLowerCase(Locale.ROOT));
|
|
|
|
|
intent.putExtra(OpenPgpApi.EXTRA_REQUEST_ASCII_ARMOR, true);
|
|
|
|
|
intent.putExtra(BuildConfig.APPLICATION_ID, largs);
|
|
|
|
|
return intent;
|
|
|
|
@ -4969,7 +4969,7 @@ public class FragmentCompose extends FragmentBase {
|
|
|
|
|
String[] userIds = new String[recipients.size()];
|
|
|
|
|
for (int i = 0; i < recipients.size(); i++) {
|
|
|
|
|
InternetAddress recipient = (InternetAddress) recipients.get(i);
|
|
|
|
|
userIds[i] = recipient.getAddress().toLowerCase();
|
|
|
|
|
userIds[i] = recipient.getAddress().toLowerCase(Locale.ROOT);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Intent intent = new Intent(OpenPgpApi.ACTION_GET_KEY_IDS);
|
|
|
|
|