[android] small promo fix

This commit is contained in:
Arsentiy Milchakov 2019-07-03 14:31:15 +03:00 committed by mpimenov
parent 80a7e77f3d
commit 95c3df72cb

View file

@ -1251,8 +1251,12 @@ public class PlacePageView extends NestedScrollView
if (mSponsored == null || mMapObject == null)
return;
Promo.INSTANCE.nativeRequestCityGallery(policy, mMapObject.getLat(), mMapObject.getLon(),
UTM.UTM_PLACEPAGE_GALLERY);
if (hasPromoGallery)
{
Promo.INSTANCE.nativeRequestCityGallery(policy, mMapObject.getLat(), mMapObject.getLon(),
UTM.UTM_PLACEPAGE_GALLERY);
}
mSponsored.updateId(mMapObject);
mSponsoredPrice = mSponsored.getPrice();
String currencyCode = Utils.getCurrencyCode();