Add debug info
This commit is contained in:
parent
12beb1ac14
commit
acb8004633
2 changed files with 8 additions and 1 deletions
|
@ -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) {
|
||||
|
|
|
@ -202,6 +202,10 @@ public class DownloadOsmandIndexesHelper {
|
|||
this.assetName = assetName;
|
||||
this.destFile = destFile;
|
||||
}
|
||||
|
||||
public long getDateModified() {
|
||||
return dateModified;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAccepted(){
|
||||
|
|
Loading…
Reference in a new issue