forked from organicmaps/organicmaps
[android][ios] Correctly reset bookmark/api/search result selection on PP close.
[android] Correctly restore selection after closing/coming back to the map activity.
This commit is contained in:
parent
7d58016341
commit
3f8b3fc64e
1 changed files with 3 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)
|
||||
|
@ -1257,6 +1258,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)
|
||||
|
@ -1669,6 +1671,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;
|
||||
|
|
Loading…
Add table
Reference in a new issue