Skip to content

Commit 2ffbb29

Browse files
authored
Merge branch 'develop' into issue-64
2 parents 06d3961 + 921453e commit 2ffbb29

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

app/src/main/java/net/osmtracker/gpx/ExportToTempFileTask.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public ExportToTempFileTask(Context context, long trackId) {
2929
String desiredOutputFormat = PreferenceManager.getDefaultSharedPreferences(context).getString(
3030
OSMTracker.Preferences.KEY_OUTPUT_FILENAME,
3131
OSMTracker.Preferences.VAL_OUTPUT_FILENAME);
32+
3233
try {
3334
String trackName = new DataHelper(context).getTrackById(trackId).getName();
3435

app/src/main/java/net/osmtracker/gpx/ZipHelper.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public static File zipCacheFiles(Context context, long trackId, File fileGPX) {
4242
if(!traceFilesDirectory.exists()){
4343
return zipFile;
4444
}
45+
4546
for (File multimediaFile : Objects.requireNonNull(traceFilesDirectory.listFiles())) {
4647
if (!multimediaFile.isDirectory()) { // Avoid adding empty folders
4748
// only add files that are not .zip files
@@ -63,6 +64,7 @@ public static File zipCacheFiles(Context context, long trackId, File fileGPX) {
6364
return null;
6465
}
6566
}
67+
6668
/***
6769
* Compresses file gpx into a zip file.
6870
* @param context Application context.
@@ -83,6 +85,7 @@ public static File zipFile(Context context, long trackId, File fileGPX) {
8385
}
8486
}
8587

88+
8689
/**
8790
* Adds a file to the ZIP archive.
8891
*

0 commit comments

Comments
 (0)