mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-30 17:40:34 +01:00
Small improvements
This commit is contained in:
@@ -1142,7 +1142,7 @@ public class FragmentCompose extends FragmentBase {
|
||||
|
||||
String[] tos = new String[ato.length];
|
||||
for (int i = 0; i < ato.length; i++)
|
||||
tos[i] = ato[i].getAddress().toLowerCase();
|
||||
tos[i] = ato[i].getAddress().toLowerCase(Locale.ROOT);
|
||||
|
||||
Intent intent = new Intent(OpenPgpApi.ACTION_GET_KEY_IDS);
|
||||
intent.putExtra(OpenPgpApi.EXTRA_USER_IDS, tos);
|
||||
@@ -1865,7 +1865,8 @@ public class FragmentCompose extends FragmentBase {
|
||||
|
||||
String extension = Helper.getExtension(attachment.name);
|
||||
if (extension != null)
|
||||
attachment.type = MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension.toLowerCase());
|
||||
attachment.type = MimeTypeMap.getSingleton()
|
||||
.getMimeTypeFromExtension(extension.toLowerCase(Locale.ROOT));
|
||||
if (attachment.type == null)
|
||||
attachment.type = "application/octet-stream";
|
||||
attachment.disposition = (image ? Part.INLINE : Part.ATTACHMENT);
|
||||
|
||||
Reference in New Issue
Block a user