forked from organicmaps/organicmaps
[MAPSME-6941] [ios] Fixed move bookmark to new category.
This commit is contained in:
parent
8e78db485e
commit
ea1ec31df2
2 changed files with 7 additions and 3 deletions
|
@ -80,13 +80,14 @@
|
|||
- (void)addSetVC:(AddSetVC *)vc didAddSetWithCategoryId:(df::MarkGroupID)categoryId
|
||||
{
|
||||
[self moveBookmarkToSetWithCategoryId:categoryId];
|
||||
[self.tableView reloadData];
|
||||
[self.delegate didSelectCategory:self.category withCategoryId:categoryId];
|
||||
}
|
||||
|
||||
- (void)moveBookmarkToSetWithCategoryId:(df::MarkGroupID)categoryId
|
||||
{
|
||||
m_categoryId = categoryId;
|
||||
self.category = @(GetFramework().GetBookmarkManager().GetCategoryName(categoryId).c_str());
|
||||
[self.tableView reloadData];
|
||||
[self.delegate didSelectCategory:self.category withCategoryId:categoryId];
|
||||
}
|
||||
|
||||
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
|
||||
|
|
|
@ -229,8 +229,11 @@ enum RowInMetaInfo
|
|||
}
|
||||
case Category:
|
||||
{
|
||||
df::MarkGroupID categoryId = self.cachedNewBookmarkCatId;
|
||||
if (categoryId == df::kInvalidMarkGroupId)
|
||||
categoryId = m_cachedBookmarkCatId;
|
||||
SelectSetVC * svc = [[SelectSetVC alloc] initWithCategory:self.cachedCategory
|
||||
categoryId:m_cachedBookmarkCatId
|
||||
categoryId:categoryId
|
||||
delegate:self];
|
||||
[self.navigationController pushViewController:svc animated:YES];
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue