forked from upstream-mirrors/OpenTracks
move tracks array from class state to method argument
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user