From 4544345b697d54248faa565dc890ec00e096304a Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Fri, 12 Aug 2016 23:17:33 +0200 Subject: [PATCH] Fix timestamp --- .../plus/resources/RegionAddressRepositoryBinary.java | 2 -- OsmAnd/src/net/osmand/plus/resources/ResourceManager.java | 8 +++++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/resources/RegionAddressRepositoryBinary.java b/OsmAnd/src/net/osmand/plus/resources/RegionAddressRepositoryBinary.java index 2a75c5a0e7..2e1358d328 100644 --- a/OsmAnd/src/net/osmand/plus/resources/RegionAddressRepositoryBinary.java +++ b/OsmAnd/src/net/osmand/plus/resources/RegionAddressRepositoryBinary.java @@ -45,11 +45,9 @@ public class RegionAddressRepositoryBinary implements RegionAddressRepository { private final Map postCodes; private final Collator collator; private String fileName; - private ResourceManager mgr; private OsmandPreference langSetting; public RegionAddressRepositoryBinary(ResourceManager mgr, BinaryMapIndexReader file, String fileName) { - this.mgr = mgr; langSetting = mgr.getContext().getSettings().MAP_PREFERRED_LOCALE; this.file = file; this.fileName = fileName; diff --git a/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java b/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java index ed68033bf6..45a90efb80 100644 --- a/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java +++ b/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java @@ -107,11 +107,13 @@ public class ResourceManager { // Indexes private final Map addressMap = new ConcurrentHashMap(); protected final Map amenityRepositories = new ConcurrentHashMap(); - protected final Map indexFileNames = new ConcurrentHashMap(); - protected final Map basemapFileNames = new ConcurrentHashMap(); protected final Map routingMapFiles = new ConcurrentHashMap(); protected final Map transportRepositories = new ConcurrentHashMap(); + protected final Map indexFileNames = new ConcurrentHashMap(); + protected final Map basemapFileNames = new ConcurrentHashMap(); + + protected final IncrementalChangesManager changesManager = new IncrementalChangesManager(this); protected final MapRenderRepositories renderer; @@ -678,8 +680,8 @@ public class ResourceManager { } } else if(!wikiMap && !srtmMap) { changesManager.indexMainMap(f, dateCreated); - indexFileNames.put(f.getName(), dateFormat.format(dateCreated)); //$NON-NLS-1$ } + indexFileNames.put(f.getName(), dateFormat.format(dateCreated)); //$NON-NLS-1$ if (!mapReader.getRegionNames().isEmpty() || mapReader.containsPoiData()) { try { RandomAccessFile raf = new RandomAccessFile(f, "r"); //$NON-NLS-1$