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

View File

@ -3974,7 +3974,7 @@ public class MediaController implements AudioManager.OnAudioFocusChangeListener,
boolean result = true; boolean result = true;
final String folderName = NekoConfig.customSavePath.String(); final String folderName = NekoConfig.customSavePath.String();
if (Build.VERSION.SDK_INT >= 29) { if (Build.VERSION.SDK_INT >= 29) {
result = saveFileInternal(type, sourceFile, null); result = saveFileInternal(type, sourceFile, name);
} else { } else {
File destFile; File destFile;
if (type == 0) { if (type == 0) {