forked from organicmaps/organicmaps
[android] Fixed endless progress of the cross promo gallery when there are no promo objects in the current city, which is associated with the MapObject
This commit is contained in:
parent
626f268ac2
commit
8021b66ba1
1 changed files with 3 additions and 3 deletions
|
@ -1246,12 +1246,12 @@ public class PlacePageView extends NestedScrollView
|
|||
|
||||
private void processSponsored(@NonNull NetworkPolicy policy)
|
||||
{
|
||||
boolean hasPromoGallery = mSponsored != null && mSponsored.getType() == Sponsored.TYPE_PROMO_CATALOG;
|
||||
toggleCatalogPromoGallery(hasPromoGallery);
|
||||
|
||||
if (mSponsored == null || mMapObject == null)
|
||||
return;
|
||||
|
||||
boolean hasPromoGallery = mSponsored.getType() == Sponsored.TYPE_PROMO_CATALOG;
|
||||
toggleCatalogPromoGallery(hasPromoGallery);
|
||||
|
||||
if (hasPromoGallery && policy.canUseNetwork())
|
||||
{
|
||||
Promo.INSTANCE.nativeRequestCityGallery(policy, mMapObject.getLat(), mMapObject.getLon(),
|
||||
|
|
Loading…
Add table
Reference in a new issue