forked from organicmaps/organicmaps
[android] Removed the "if" condition if a promo is missing
This commit is contained in:
parent
a33cf2fe2c
commit
729d2df5ae
1 changed files with 3 additions and 3 deletions
|
@ -275,9 +275,6 @@ public class OnmapDownloader implements MwmActivity.LeftAnimationTrackListener
|
|||
boolean isDownloading = enqueued || progress || applying;
|
||||
UiUtils.showIf(isPromoFound && isDownloading, mPromoContentDivider);
|
||||
|
||||
if (!isPromoFound)
|
||||
return;
|
||||
|
||||
boolean hasMegafonPromo = mPromoBanner.getType() == DownloaderPromoBanner.DOWNLOADER_PROMO_TYPE_MEGAFON;
|
||||
boolean hasCatalogPromo = mPromoBanner.getType() == DownloaderPromoBanner.DOWNLOADER_PROMO_TYPE_BOOKMARK_CATALOG;
|
||||
|
||||
|
@ -285,6 +282,9 @@ public class OnmapDownloader implements MwmActivity.LeftAnimationTrackListener
|
|||
UiUtils.showIf(isDownloading && hasCatalogPromo, mCatalogCallToActionContainer);
|
||||
|
||||
|
||||
if (mPromoBanner.getType() == DownloaderPromoBanner.DOWNLOADER_PROMO_TYPE_NO_PROMO)
|
||||
return;
|
||||
|
||||
Statistics.ParameterBuilder builder =
|
||||
Statistics.makeDownloaderBannerParamBuilder(mPromoBanner.toStatisticValue());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue