From c3e4489b428096f03b819bab18b7a8ea5735e79c Mon Sep 17 00:00:00 2001 From: Arsentiy Milchakov Date: Fri, 30 Aug 2019 15:12:00 +0300 Subject: [PATCH] [promo] do not show preview plus on attractions when no internet. + small format fix --- android/jni/com/mapswithme/maps/promo/Promo.cpp | 6 +++--- map/framework.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/android/jni/com/mapswithme/maps/promo/Promo.cpp b/android/jni/com/mapswithme/maps/promo/Promo.cpp index b2e58ee76b..4a7a8112bc 100644 --- a/android/jni/com/mapswithme/maps/promo/Promo.cpp +++ b/android/jni/com/mapswithme/maps/promo/Promo.cpp @@ -145,9 +145,9 @@ Java_com_mapswithme_maps_promo_Promo_nativeRequestCityGallery(JNIEnv * env, jcla JNIEXPORT void JNICALL Java_com_mapswithme_maps_promo_Promo_nativeRequestPoiGallery(JNIEnv * env, jclass, - jobject policy, jdouble lat, - jdouble lon, jobjectArray tags, - jint utm) + jobject policy, jdouble lat, + jdouble lon, jobjectArray tags, + jint utm) { PrepareClassRefs(env); auto const point = MercatorBounds::FromLatLon(static_cast(lat), static_cast(lon)); diff --git a/map/framework.cpp b/map/framework.cpp index 8a6dd699b1..ca58fb6ebf 100644 --- a/map/framework.cpp +++ b/map/framework.cpp @@ -1000,7 +1000,7 @@ void Framework::FillInfoFromFeatureType(FeatureType & ft, place_page::Info & inf } else if (ftypes::IsPromoCatalogPoiChecker::Instance()(ft)) { - info.SetOpeningMode(m_routingManager.IsRoutingActive() + info.SetOpeningMode(m_routingManager.IsRoutingActive() || !GetPlatform().IsConnected() ? place_page::OpeningMode::Preview : place_page::OpeningMode::PreviewPlus); info.SetSponsoredType(SponsoredType::PromoCatalogPoi);