fix voice message handling for messages sent from Android 4.X devices #916

This commit is contained in:
cyBerta 2019-06-17 19:42:41 +02:00
parent 0b99c90a33
commit 0cfd44990c
4 changed files with 20 additions and 6 deletions

View file

@ -126,8 +126,7 @@ public class SaveAttachmentTask extends ProgressDialogAsyncTask<SaveAttachmentTa
}
private String generateOutputFileName(@NonNull String contentType, long timestamp) {
MimeTypeMap mimeTypeMap = MimeTypeMap.getSingleton();
String extension = mimeTypeMap.getExtensionFromMimeType(contentType);
String extension = MediaUtil.getExtensionFromMimeType(contentType);
SimpleDateFormat dateFormatter = new SimpleDateFormat("yyyy-MM-dd-HHmmss");
String base = "deltachat-" + dateFormatter.format(timestamp);