forked from organicmaps/organicmaps
Merge pull request #2464 from deathbaba/fixes
[android][ios] Correctly reset bookmark/api/search result selection on PP close.
This commit is contained in:
commit
2b91ad0b90
2 changed files with 6 additions and 0 deletions
|
@ -732,6 +732,7 @@ void Framework::ShowBookmark(BookmarkAndCategory const & bnc)
|
|||
place_page::Info info;
|
||||
FillBookmarkInfo(*mark, bnc, info);
|
||||
ActivateMapSelection(true, df::SelectionShape::OBJECT_USER_MARK, info);
|
||||
m_lastTapEvent.reset(new df::TapInfo { m_currentModelView.GtoP(info.GetMercator()), false, false, info.GetID() });
|
||||
}
|
||||
|
||||
void Framework::ShowTrack(Track const & track)
|
||||
|
@ -1289,6 +1290,7 @@ void Framework::ShowSearchResult(search::Result const & res)
|
|||
|
||||
UserMarkContainer::UserMarkForPoi()->SetPtOrg(center);
|
||||
ActivateMapSelection(false, df::SelectionShape::OBJECT_POI, info);
|
||||
m_lastTapEvent.reset(new df::TapInfo { m_currentModelView.GtoP(center), false, false, info.GetID() });
|
||||
}
|
||||
|
||||
size_t Framework::ShowSearchResults(search::Results const & results)
|
||||
|
@ -1701,6 +1703,7 @@ bool Framework::ShowMapForURL(string const & url)
|
|||
FillPointInfo(point, name, info);
|
||||
ActivateMapSelection(false, df::SelectionShape::OBJECT_POI, info);
|
||||
}
|
||||
m_lastTapEvent.reset(new df::TapInfo{ m_currentModelView.GtoP(info.GetMercator()), false, false, info.GetID() });
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
@ -44,6 +44,9 @@ string Info::GetTitle() const
|
|||
|
||||
string Info::GetSubtitle() const
|
||||
{
|
||||
if (!IsFeature())
|
||||
return {};
|
||||
|
||||
vector<string> values;
|
||||
|
||||
// Type.
|
||||
|
|
Loading…
Add table
Reference in a new issue