do not pass complete track data to exporter factory method just to knwo if there is more then one track to export

This commit is contained in:
thrillfall
2020-08-11 17:23:56 +02:00
committed by Dennis Guse
parent 47c259fa9a
commit f4b585b830
4 changed files with 31 additions and 26 deletions
@@ -206,7 +206,7 @@ public class ExportProgressDialogFragment extends DialogFragment {
}
private Boolean exportTrack(Context context, Track track) {
TrackExporter trackExporter = trackFileFormat.newTrackExporter(context, new Track[]{track});
TrackExporter trackExporter = trackFileFormat.newTrackExporter(context);
//TODO Move to helper function
String fileName = track.getId() + "." + trackFileFormat.getExtension();