forked from organicmaps/organicmaps
[iOS] if parse ge0 url has empty name, we don't show balloon
and set it default name.
This commit is contained in:
parent
b28e16a20f
commit
fe110dd97e
1 changed files with 7 additions and 1 deletions
|
@ -225,7 +225,13 @@ void InitLocalizedStrings()
|
|||
m_navController.navigationBarHidden = YES;
|
||||
Framework & f = GetFramework();
|
||||
const size_t catIndex = f.LastEditedCategory();
|
||||
[m_mapViewController showBallonWithCategoryIndex:catIndex andBookmarkIndex:(f.GetBmCategory(catIndex)->GetBookmarksCount() - 1)];
|
||||
BookmarkCategory * cat = f.GetBmCategory(catIndex);
|
||||
size_t bookmarkPos = cat->GetBookmarksCount() - 1;
|
||||
Bookmark * bm = cat->GetBookmark(bookmarkPos);
|
||||
if (bm->GetName().empty())
|
||||
bm->SetName([NSLocalizedString(@"dropped_pin", nil) UTF8String]);
|
||||
else
|
||||
[m_mapViewController showBallonWithCategoryIndex:catIndex andBookmarkIndex:bookmarkPos];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Add table
Reference in a new issue