Fix so we don't store old versions of indexes

This commit is contained in:
Victor Shcherb 2021-01-05 21:19:24 +01:00
parent 03dc11febe
commit f27c397835

View file

@ -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();