Remove "show description" item from additional options menu
This commit is contained in:
parent
641931beea
commit
adba6381f3
1 changed files with 0 additions and 14 deletions
|
@ -236,20 +236,6 @@ public class ContextMenuLayer extends OsmandMapLayer {
|
|||
|
||||
@Override
|
||||
public void populateObjectContextMenu(LatLon latLon, Object o, ContextMenuAdapter adapter, MapActivity mapActivity) {
|
||||
if (menu.hasHiddenBottomInfo()) {
|
||||
ContextMenuAdapter.ItemClickListener listener = new ContextMenuAdapter.ItemClickListener() {
|
||||
@Override
|
||||
public boolean onContextMenuClick(ArrayAdapter<ContextMenuItem> adapter, int itemId, int pos, boolean isChecked, int[] viewCoordinates) {
|
||||
menu.openMenuFullScreen();
|
||||
return true;
|
||||
}
|
||||
};
|
||||
adapter.addItem(new ContextMenuItem.ItemBuilder()
|
||||
.setTitleId(R.string.shared_string_show_description, activity)
|
||||
.setIcon(R.drawable.ic_action_note_dark)
|
||||
.setListener(listener)
|
||||
.createItem());
|
||||
}
|
||||
if (isObjectMoveable(o)) {
|
||||
ContextMenuAdapter.ItemClickListener listener = new ContextMenuAdapter.ItemClickListener() {
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue