[android] Removed the "if" condition if a promo is missing

This commit is contained in:
Dmitry Donskoy 2019-07-30 12:18:50 +03:00 committed by Aleksey Belousov
parent a33cf2fe2c
commit 729d2df5ae

View file

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