diff --git a/OsmAnd/src/net/osmand/plus/download/ui/LocalIndexesFragment.java b/OsmAnd/src/net/osmand/plus/download/ui/LocalIndexesFragment.java index cd09e17dfd..66ca632a82 100644 --- a/OsmAnd/src/net/osmand/plus/download/ui/LocalIndexesFragment.java +++ b/OsmAnd/src/net/osmand/plus/download/ui/LocalIndexesFragment.java @@ -240,7 +240,7 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment implement info.getFileName()); confirm.setMessage(getString(R.string.clear_confirmation_msg, fn)); confirm.show(); - } else if (resId == R.string.maps_define_edit) { + } else if (resId == R.string.shared_string_edit) { OsmandRasterMapsPlugin.defineNewEditLayer(getDownloadActivity(), new ResultMatcher() { @Override @@ -1237,6 +1237,18 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment implement return true; } }); + if (info.getType() == LocalIndexType.TILES_DATA && (info.getAttachedObject() instanceof ITileSource) && + ((ITileSource) info.getAttachedObject()).couldBeDownloadedFromInternet()) { + item = optionsMenu.getMenu().add(R.string.shared_string_edit) + .setIcon(iconsCache.getThemedIcon(R.drawable.ic_action_edit_dark)); + item.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { + @Override + public boolean onMenuItemClick(MenuItem item) { + performBasicOperation(R.string.shared_string_edit, info); + return true; + } + }); + } if (info.getType() == LocalIndexType.TILES_DATA && (info.getAttachedObject() instanceof ITileSource) && ((ITileSource)info.getAttachedObject()).couldBeDownloadedFromInternet()) { item = optionsMenu.getMenu().add(R.string.clear_tile_data) @@ -1247,19 +1259,7 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment implement performBasicOperation(R.string.clear_tile_data, info); return true; } - }); - } - if (info.getType() == LocalIndexType.TILES_DATA && (info.getAttachedObject() instanceof ITileSource) && - ((ITileSource) info.getAttachedObject()).couldBeDownloadedFromInternet()) { - item = optionsMenu.getMenu().add(R.string.maps_define_edit) - .setIcon(iconsCache.getThemedIcon(R.drawable.ic_action_type_edit)); - item.setOnMenuItemClickListener(new MenuItem.OnMenuItemClickListener() { - @Override - public boolean onMenuItemClick(MenuItem item) { - performBasicOperation(R.string.maps_define_edit, info); - return true; - } - }); + }); } final IndexItem update = filesToUpdate.get(info.getFileName()); if (update != null) {