From acb80046339c86fdb2b4e09513693096d07a3192 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Sun, 4 Aug 2013 01:18:21 +0200 Subject: [PATCH] Add debug info --- .../src/net/osmand/plus/download/DownloadIndexesThread.java | 5 ++++- .../osmand/plus/download/DownloadOsmandIndexesHelper.java | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/download/DownloadIndexesThread.java b/OsmAnd/src/net/osmand/plus/download/DownloadIndexesThread.java index f03f69773c..072fd1adb6 100644 --- a/OsmAnd/src/net/osmand/plus/download/DownloadIndexesThread.java +++ b/OsmAnd/src/net/osmand/plus/download/DownloadIndexesThread.java @@ -317,7 +317,10 @@ public class DownloadIndexesThread { try { if (uiActivity != null) { ResourceManager.copyAssets(uiActivity.getAssets(), de.assetName, de.targetFile); - de.targetFile.setLastModified(de.dateModified); + boolean changedDate = de.targetFile.setLastModified(de.dateModified); + if(!changedDate) { + log.error("Set last timestamp is not supported"); + } res = true; } } catch (IOException e) { diff --git a/OsmAnd/src/net/osmand/plus/download/DownloadOsmandIndexesHelper.java b/OsmAnd/src/net/osmand/plus/download/DownloadOsmandIndexesHelper.java index 685af77045..037d820911 100644 --- a/OsmAnd/src/net/osmand/plus/download/DownloadOsmandIndexesHelper.java +++ b/OsmAnd/src/net/osmand/plus/download/DownloadOsmandIndexesHelper.java @@ -202,6 +202,10 @@ public class DownloadOsmandIndexesHelper { this.assetName = assetName; this.destFile = destFile; } + + public long getDateModified() { + return dateModified; + } @Override public boolean isAccepted(){