[ios] Updating place pace after editing was implemented.

This commit is contained in:
VladiMihaylenko 2016-03-04 14:13:56 +03:00 committed by Sergey Yershov
parent 440501fb0e
commit 4a323d16f4

View file

@ -154,13 +154,15 @@ NSString * reuseIdentifier(MWMPlacePageCellType cellType)
- (void)onSave
{
switch (GetFramework().SaveEditedMapObject(m_mapObject))
auto & f = GetFramework();
switch (f.SaveEditedMapObject(m_mapObject))
{
case osm::Editor::NothingWasChanged:
break;
case osm::Editor::SavedSuccessfully:
[[Statistics instance] logEvent:kStatEventName(kStatEdit, kStatSave)];
osm_auth_ios::AuthorizationSetNeedCheck(YES);
f.UpdatePlacePageInfoForCurrentSelection();
break;
case osm::Editor::NoFreeSpaceError:
// TODO(Vlad): Show error dialog.