[ios] crash after bookmark group modify is fixed

This commit is contained in:
Arsentiy Milchakov 2019-08-30 11:50:18 +03:00 committed by Aleksey Belousov
parent c467b7a40c
commit 46e1b7ed15
3 changed files with 8 additions and 1 deletions

View file

@ -136,7 +136,7 @@ void RegisterEventIfPossible(eye::MapObject::Event::Type const type, place_page:
self.data = [[MWMPlacePageData alloc] initWithPlacePageInfo:info];
[self.data fillSections];
[self setupSpeedAndDistance];
[self.layout checkCellsVisible];
[self.layout updateWithData:self.data];
}
- (BOOL)isPPShown {

View file

@ -36,6 +36,7 @@ enum class NodeStatus;
dataSource:(id<MWMPlacePageLayoutDataSource>)dataSource;
- (void)showWithData:(MWMPlacePageData *)data;
- (void)updateWithData:(MWMPlacePageData *)data;
- (void)close;
- (void)mwm_refreshUI;

View file

@ -130,6 +130,12 @@ map<MetainfoRows, Class> const kMetaInfoCells = {
});
}
- (void)updateWithData:(MWMPlacePageData *)data;
{
self.data = data;
[self checkCellsVisible];
}
- (void)rotateDirectionArrowToAngle:(CGFloat)angle
{
[self.previewLayoutHelper rotateDirectionArrowToAngle:angle];