Add disable edit online sources without url.
This commit is contained in:
parent
9695a91f8b
commit
49ef3b3500
1 changed files with 2 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue