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
@@ -212,7 +212,7 @@ public class ShareContentProvider extends CustomContentProvider implements ICont
PipeDataWriter<String> pipeDataWriter = (output, uri1, mimeType, opts, args) -> {
try (FileOutputStream fileOutputStream = new FileOutputStream(output.getFileDescriptor())) {
trackExporter.writeTrack(fileOutputStream);
trackExporter.writeTrack(tracks, fileOutputStream);
} catch (IOException e) {
Log.w(TAG, "there occurred an error while sharing a file: " + e);
}