forked from upstream-mirrors/OpenTracks
Bugfix: export all failed trying to convert to string the Track.Id.
This commit is contained in:
@@ -209,7 +209,7 @@ public class ExportProgressDialogFragment extends DialogFragment {
|
|||||||
TrackExporter trackExporter = trackFileFormat.newTrackExporter(context);
|
TrackExporter trackExporter = trackFileFormat.newTrackExporter(context);
|
||||||
|
|
||||||
//TODO Move to helper function
|
//TODO Move to helper function
|
||||||
String fileName = track.getId() + "." + trackFileFormat.getExtension();
|
String fileName = track.getId().getId() + "." + trackFileFormat.getExtension();
|
||||||
|
|
||||||
// Overwrite a file if it exists; DocumentFile.createFile() creates a new file appending a suffix if the displayname already exists.
|
// Overwrite a file if it exists; DocumentFile.createFile() creates a new file appending a suffix if the displayname already exists.
|
||||||
DocumentFile file = directory.findFile(fileName);
|
DocumentFile file = directory.findFile(fileName);
|
||||||
|
|||||||
Reference in New Issue
Block a user