[promo] do not show preview plus on attractions when no internet. + small format fix

This commit is contained in:
Arsentiy Milchakov 2019-08-30 15:12:00 +03:00 committed by Aleksandr Zatsepin
parent 47f5e0edc5
commit c3e4489b42
2 changed files with 4 additions and 4 deletions

View file

@ -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<double>(lat), static_cast<double>(lon));

View file

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