Merge pull request #8392 from osmandapp/Fix_7752

Fix edit mapillary source
This commit is contained in:
max-klaus 2020-02-06 17:43:29 +03:00 committed by GitHub
commit 8739603393
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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