[ios] Enabled OSM editor notes for all places

Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
Alexander Borsuk 2023-02-18 17:06:56 +01:00 committed by Alexander Borsuk
parent 5db9c22bd0
commit ab1732242f

View file

@ -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;