From 2a317b62aca1d9aa67722ab91e356fb265a0cb82 Mon Sep 17 00:00:00 2001 From: luvletter2333 Date: Sat, 25 Jun 2022 20:57:52 +0800 Subject: [PATCH] keep downloaded files' origin name --- .../src/main/java/org/telegram/messenger/MediaController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/MediaController.java b/TMessagesProj/src/main/java/org/telegram/messenger/MediaController.java index 871b6b93e..3e60bcc8f 100644 --- a/TMessagesProj/src/main/java/org/telegram/messenger/MediaController.java +++ b/TMessagesProj/src/main/java/org/telegram/messenger/MediaController.java @@ -3974,7 +3974,7 @@ public class MediaController implements AudioManager.OnAudioFocusChangeListener, boolean result = true; final String folderName = NekoConfig.customSavePath.String(); if (Build.VERSION.SDK_INT >= 29) { - result = saveFileInternal(type, sourceFile, null); + result = saveFileInternal(type, sourceFile, name); } else { File destFile; if (type == 0) {