From b78b545197279cc3a6ddb7e4ed884fe5cac5cf32 Mon Sep 17 00:00:00 2001 From: RZR-UA Date: Thu, 12 Dec 2024 16:46:09 +0100 Subject: [PATCH] Refactor --- OsmAnd/src/net/osmand/plus/resources/ResourceManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java b/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java index cff31fc2397..d43b4e25240 100644 --- a/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java +++ b/OsmAnd/src/net/osmand/plus/resources/ResourceManager.java @@ -1569,9 +1569,10 @@ public Map getBackupIndexes(Map map) { if (file != null && file.isDirectory()) { File[] lf = file.listFiles(); if (lf != null) { + DateFormat dateFormat = getDateFormat(); for (File f : lf) { if (f != null && f.getName().endsWith(IndexConstants.BINARY_MAP_INDEX_EXT)) { - map.put(f.getName(), getDateFormat().format(f.lastModified())); + map.put(f.getName(), dateFormat.format(f.lastModified())); } } }