Fix condition
This commit is contained in:
parent
e7e209431b
commit
ad6a2bf413
1 changed files with 2 additions and 3 deletions
|
@ -1236,9 +1236,8 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment implement
|
|||
return true;
|
||||
}
|
||||
});
|
||||
if (info.getType() == LocalIndexType.TILES_DATA && (info.getAttachedObject() instanceof ITileSource)
|
||||
&& ((ITileSource) info.getAttachedObject()).couldBeDownloadedFromInternet()
|
||||
|| info.getAttachedObject() instanceof TileSourceManager.TileSourceTemplate) {
|
||||
if (info.getType() == LocalIndexType.TILES_DATA
|
||||
&& (info.getAttachedObject() instanceof TileSourceManager.TileSourceTemplate)) {
|
||||
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