From e39b0ed58b0202e6a4332d571c64969241413073 Mon Sep 17 00:00:00 2001 From: madwasp79 Date: Fri, 1 Mar 2019 12:29:33 +0200 Subject: [PATCH] Fix modified time of gpx file (was 0) --- OsmAnd-java/src/main/java/net/osmand/GPXUtilities.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OsmAnd-java/src/main/java/net/osmand/GPXUtilities.java b/OsmAnd-java/src/main/java/net/osmand/GPXUtilities.java index 339f91e3fd..3610aabcc7 100644 --- a/OsmAnd-java/src/main/java/net/osmand/GPXUtilities.java +++ b/OsmAnd-java/src/main/java/net/osmand/GPXUtilities.java @@ -1592,6 +1592,10 @@ public class GPXUtilities { fis = new FileInputStream(f); GPXFile file = loadGPXFile(fis); file.path = f.getAbsolutePath(); + if(file.modifiedTime == 0) { + file.modifiedTime = f.lastModified(); + } + try { fis.close(); } catch (IOException e) {