Add debug info

This commit is contained in:
Victor Shcherb 2013-08-04 01:18:21 +02:00
parent 12beb1ac14
commit acb8004633
2 changed files with 8 additions and 1 deletions

View file

@ -317,7 +317,10 @@ public class DownloadIndexesThread {
try { try {
if (uiActivity != null) { if (uiActivity != null) {
ResourceManager.copyAssets(uiActivity.getAssets(), de.assetName, de.targetFile); 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; res = true;
} }
} catch (IOException e) { } catch (IOException e) {

View file

@ -202,6 +202,10 @@ public class DownloadOsmandIndexesHelper {
this.assetName = assetName; this.assetName = assetName;
this.destFile = destFile; this.destFile = destFile;
} }
public long getDateModified() {
return dateModified;
}
@Override @Override
public boolean isAccepted(){ public boolean isAccepted(){