[ios] Review fixes

Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
This commit is contained in:
Kiryl Kaveryn
2025-07-10 18:05:27 +04:00
committed by Yannik Bloscheck
parent 1e8ab6d209
commit ef1ea0ef96
2 changed files with 5 additions and 4 deletions

View File

@@ -12,7 +12,10 @@ NS_ASSUME_NONNULL_BEGIN
@property(nonatomic, readonly) MWMTrackID trackId;
@property(nonatomic, readonly) MWMMarkGroupID groupId;
@property(nonatomic, readonly, nullable) NSString * trackCategory;
// TODO: The track description is not fully implemented in the core yet.
@property(nonatomic, readonly, nullable) NSString * trackDescription;
/// The color is nil for Track Recordings.
@property(nonatomic, readonly, nullable) UIColor * color;
@property(nonatomic, readwrite, nonnull) TrackInfo * trackInfo;
@property(nonatomic, readwrite, nullable) ElevationProfileData * elevationProfileData;

View File

@@ -182,8 +182,7 @@ using namespace storage;
- (void)updateBookmark:(PlacePageData *)data color:(MWMBookmarkColor)color category:(MWMMarkGroupID)category {
MWMBookmarksManager * bookmarksManager = [MWMBookmarksManager sharedManager];
auto const & markId = data.bookmarkData.bookmarkId;
[bookmarksManager updateBookmark:markId setGroupId:category title:data.previewData.title color:color description:data.bookmarkData.bookmarkDescription];
[bookmarksManager updateBookmark:data.bookmarkData.bookmarkId setGroupId:category title:data.previewData.title color:color description:data.bookmarkData.bookmarkDescription];
[MWMFrameworkHelper updatePlacePageData];
[data updateBookmarkStatus];
}
@@ -198,8 +197,7 @@ using namespace storage;
- (void)updateTrack:(PlacePageData *)data color:(UIColor *)color category:(MWMMarkGroupID)category {
MWMBookmarksManager * bookmarksManager = [MWMBookmarksManager sharedManager];
auto const & trackId = data.trackData.trackId;
[bookmarksManager updateTrack:trackId setGroupId:category color:color title:data.previewData.title];
[bookmarksManager updateTrack:data.trackData.trackId setGroupId:category color:color title:data.previewData.title];
[MWMFrameworkHelper updatePlacePageData];
[data updateBookmarkStatus];
}