use track id as a temp folder name

This commit is contained in:
aliveoutside
2022-07-12 17:37:08 +03:00
parent 9d0e607c0b
commit f01d5efa92
@@ -26,7 +26,7 @@ public class AudioDownloader{
return; return;
} }
var musicPath = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MUSIC).getAbsolutePath(); var musicPath = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MUSIC).getAbsolutePath();
var tempId = new Random().nextInt(100); var tempId = track.d;
var downloadPath = musicPath + File.separator + tempId; var downloadPath = musicPath + File.separator + tempId;
var notification = buildDownloadNotification(track, tempId); var notification = buildDownloadNotification(track, tempId);