From 49ef3b3500f971e25eae2518c12313e1a6233e60 Mon Sep 17 00:00:00 2001 From: Dima-1 Date: Tue, 11 Feb 2020 13:16:41 +0200 Subject: [PATCH] Add disable edit online sources without url. --- .../src/net/osmand/plus/download/ui/LocalIndexesFragment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/download/ui/LocalIndexesFragment.java b/OsmAnd/src/net/osmand/plus/download/ui/LocalIndexesFragment.java index ec394ed36d..135291eb46 100644 --- a/OsmAnd/src/net/osmand/plus/download/ui/LocalIndexesFragment.java +++ b/OsmAnd/src/net/osmand/plus/download/ui/LocalIndexesFragment.java @@ -1239,7 +1239,8 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment implement }); if (info.getType() == LocalIndexType.TILES_DATA && ((info.getAttachedObject() instanceof TileSourceManager.TileSourceTemplate) - || (info.getAttachedObject() instanceof SQLiteTileSource))) { + || ((info.getAttachedObject() instanceof SQLiteTileSource) + && ((SQLiteTileSource) 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() {