add overload for exporter that takes single track

This commit is contained in:
thrillfall
2020-08-16 20:01:35 +02:00
committed by Dennis Guse
parent f4b585b830
commit 8425997c29
5 changed files with 18 additions and 13 deletions
@@ -218,7 +218,7 @@ public class ExportProgressDialogFragment extends DialogFragment {
}
try (OutputStream outputStream = context.getContentResolver().openOutputStream(file.getUri())) {
if (trackExporter.writeTrack(new Track[]{track}, outputStream)) {
if (trackExporter.writeTrack(track, outputStream)) {
return true;
} else {
if (!file.delete()) {