Add disable edit online sources without url.

This commit is contained in:
Dima-1 2020-02-11 13:16:41 +02:00
parent 9695a91f8b
commit 49ef3b3500

View file

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