From b1675132767b19ec4b731d562e85d9177173f153 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Fri, 11 Mar 2016 13:01:52 +0300 Subject: [PATCH] Added missing API ID for selected point to use in Android intents. --- map/framework.cpp | 1 + map/place_page_info.hpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/map/framework.cpp b/map/framework.cpp index 56672e0f7f..c88615b1e6 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -659,6 +659,7 @@ void Framework::FillPointInfo(m2::PointD const & mercator, string const & custom void Framework::FillApiMarkInfo(ApiMarkPoint const & api, place_page::Info & info) const { FillPointInfo(api.GetPivot(), api.GetName(), info); + info.m_apiId = api.GetID(); info.m_apiUrl = GenerateApiBackUrl(api); } diff --git a/map/place_page_info.hpp b/map/place_page_info.hpp index 4bb23503c7..1c8e84906a 100644 --- a/map/place_page_info.hpp +++ b/map/place_page_info.hpp @@ -56,6 +56,8 @@ public: string m_customName; /// If not empty, bookmark is bound to this place page. BookmarkAndCategory m_bac = MakeEmptyBookmarkAndCategory(); + /// Api ID passed for the selected object. It's automatically included in api url below. + string m_apiId; /// [Deep] link to open when "Back" button is pressed in a Place Page. string m_apiUrl; bool m_isMyPosition = false;