diff --git a/OsmAnd/src/net/osmand/plus/activities/SavingTrackHelper.java b/OsmAnd/src/net/osmand/plus/activities/SavingTrackHelper.java index 5a4a9d9c47..2c5d1ad126 100644 --- a/OsmAnd/src/net/osmand/plus/activities/SavingTrackHelper.java +++ b/OsmAnd/src/net/osmand/plus/activities/SavingTrackHelper.java @@ -137,10 +137,9 @@ public class SavingTrackHelper extends SQLiteOpenHelper { // save file for (final String f : data.keySet()) { - File fout = new File(dir, f + ".gpx"); //$NON-NLS-1$ - if (fout.exists() && !data.get(f).isEmpty()) { - String fileName = f + "_" + new SimpleDateFormat("HH-mm-ss_EEEE").format(new Date(data.get(f).findPointToShow().time)); //$NON-NLS-1$ + if (!data.get(f).isEmpty()) { + String fileName = f + "_" + new SimpleDateFormat("HH-mm_EEE").format(new Date(data.get(f).findPointToShow().time)); //$NON-NLS-1$ fout = new File(dir, fileName + ".gpx"); //$NON-NLS-1$ int ind = 1; while (fout.exists()) {