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 {
|
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) {
|
||||||
|
|
|
@ -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(){
|
||||||
|
|
Loading…
Reference in a new issue