forked from organicmaps/organicmaps-tmp
[ios] Enabled OSM editor notes for all places
Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
parent
5db9c22bd0
commit
ab1732242f
1 changed files with 2 additions and 3 deletions
|
@ -333,8 +333,7 @@ void registerCellsForTableView(std::vector<MWMEditorCellID> const & cells, UITab
|
|||
return mid == MetadataID::FMD_POSTCODE || mid == MetadataID::FMD_BUILDING_LEVELS;
|
||||
}), editableProperties.end());
|
||||
BOOL const isCreating = self.isCreating;
|
||||
BOOL const isThereNotes =
|
||||
!isCreating && editableProperties.empty() && !isAddressEditable && !isNameEditable;
|
||||
BOOL const showNotesToOSMEditors = !isCreating;
|
||||
|
||||
if (isNameEditable)
|
||||
{
|
||||
|
@ -367,7 +366,7 @@ void registerCellsForTableView(std::vector<MWMEditorCellID> const & cells, UITab
|
|||
registerCellsForTableView(v, self.tableView);
|
||||
}
|
||||
|
||||
if (isThereNotes)
|
||||
if (showNotesToOSMEditors)
|
||||
{
|
||||
m_sections.push_back(MWMEditorSectionNote);
|
||||
m_cells[MWMEditorSectionNote] = kSectionNoteCellTypes;
|
||||
|
|
Loading…
Add table
Reference in a new issue