keep downloaded files' origin name

This commit is contained in:
luvletter2333 2022-06-25 20:57:52 +08:00
parent 8057580313
commit 2a317b62ac
No known key found for this signature in database
GPG Key ID: A26A8880836E1978
1 changed files with 1 additions and 1 deletions

View File

@ -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) {