From 69958f88decde11d1f955d698ef304ea4ba09e21 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Fri, 6 Jan 2012 00:48:20 +0100 Subject: [PATCH] Fix issue 803. Align naming --- OsmAnd/src/net/osmand/plus/activities/SavingTrackHelper.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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()) {