From 5da8acd4dad6cfc2d7cbf9903ef8595a59ac2505 Mon Sep 17 00:00:00 2001 From: Dima-1 Date: Wed, 5 Feb 2020 11:15:36 +0200 Subject: [PATCH] Fix edit mapillary source --- .../src/net/osmand/plus/rastermaps/OsmandRasterMapsPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/rastermaps/OsmandRasterMapsPlugin.java b/OsmAnd/src/net/osmand/plus/rastermaps/OsmandRasterMapsPlugin.java index 550a9c0694..51928d38ef 100644 --- a/OsmAnd/src/net/osmand/plus/rastermaps/OsmandRasterMapsPlugin.java +++ b/OsmAnd/src/net/osmand/plus/rastermaps/OsmandRasterMapsPlugin.java @@ -514,7 +514,7 @@ public class OsmandRasterMapsPlugin extends OsmandPlugin { existing.setAdapter(adapter); if (editedLayerName != null) { File f = ((OsmandApplication) activity.getApplication()).getAppPath( - IndexConstants.TILES_INDEX_DIR + templates.get(adapter.getPosition(editedLayerName))); + IndexConstants.TILES_INDEX_DIR + editedLayerName); TileSourceTemplate template = TileSourceManager.createTileSourceTemplate(f); if (template != null) { result[0] = template.copy();