move tracks array from class state to method argument

This commit is contained in:
thrillfall
2020-08-11 13:53:03 +02:00
committed by Dennis Guse
parent 80208e3188
commit 47c259fa9a
7 changed files with 25 additions and 33 deletions
@@ -218,7 +218,7 @@ public class ExportProgressDialogFragment extends DialogFragment {
}
try (OutputStream outputStream = context.getContentResolver().openOutputStream(file.getUri())) {
if (trackExporter.writeTrack(outputStream)) {
if (trackExporter.writeTrack(new Track[]{track}, outputStream)) {
return true;
} else {
if (!file.delete()) {