Fix so we don't store old versions of indexes
This commit is contained in:
parent
03dc11febe
commit
f27c397835
1 changed files with 57 additions and 55 deletions
|
@ -46,10 +46,12 @@ public class CachedOsmandIndexes {
|
|||
storedIndexBuilder.setDateCreated(System.currentTimeMillis());
|
||||
if (storedIndex != null) {
|
||||
for (FileIndex ex : storedIndex.getFileIndexList()) {
|
||||
if (!ex.getFileName().equals(f.getName())) {
|
||||
storedIndexBuilder.addFileIndex(ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
FileIndex.Builder fileIndex = OsmandIndex.FileIndex.newBuilder();
|
||||
long d = reader.getDateCreated();
|
||||
|
|
Loading…
Reference in a new issue