Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'android/jni/com/mapswithme/maps/Framework.cpp')
-rw-r--r--android/jni/com/mapswithme/maps/Framework.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/android/jni/com/mapswithme/maps/Framework.cpp b/android/jni/com/mapswithme/maps/Framework.cpp
index e96baf3755..0a6456b4cb 100644
--- a/android/jni/com/mapswithme/maps/Framework.cpp
+++ b/android/jni/com/mapswithme/maps/Framework.cpp
@@ -275,6 +275,8 @@ Storage & Framework::GetStorage()
return m_work.GetStorage();
}
+Index const & Framework::GetIndex() { return m_work.GetIndex(); }
+
void Framework::ShowNode(TCountryId const & idx, bool zoomToDownloadButton)
{
if (zoomToDownloadButton)
@@ -578,15 +580,9 @@ void Framework::RequestViatorProducts(JNIEnv * env, jobject policy, std::string
viatorApi->GetTop5Products(destId, currency, callback);
}
-void Framework::RequestUGC(ugc::Api::UGCCallback const & ugcCallback)
+void Framework::RequestUGC(FeatureID const & fid, ugc::Api::UGCCallback const & ugcCallback)
{
- auto const & info = GetPlacePageInfo();
- if (!info.IsFeature())
- {
- ugcCallback(ugc::UGC{});
- return;
- }
- m_work.GetUGCApi().GetUGC(info.GetID(), ugcCallback);
+ m_work.GetUGCApi().GetUGC(fid, ugcCallback);
}
int Framework::ToDoAfterUpdate() const