mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-06 03:49:58 +02:00
fix voice message handling for messages sent from Android 4.X devices #916
This commit is contained in:
parent
0b99c90a33
commit
0cfd44990c
4 changed files with 20 additions and 6 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue