[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:
Alex Zolotarev 2016-03-24 00:54:01 +03:00
parent 7d58016341
commit 3f8b3fc64e

View file

@ -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;