[android] Fixed small action button in banner

This commit is contained in:
Александр Зацепин 2018-10-02 18:59:08 +03:00 committed by Daria Volvenkova
parent 2c51aaffa3
commit 83b9eb0dbf

View file

@ -214,18 +214,19 @@ final class BannerController
if ((mAdsLoader.isAdLoading() || hasErrorOccurred())
&& mCurrentAd == null)
{
UiUtils.hide(mIcon, mTitle, mMessage, mActionSmall, mActionContainer, mAdChoices,
UiUtils.hide(mIcon, mTitle, mMessage, mActionSmall, mActionContainer, mActionLarge, mAdChoices,
mAdChoicesLabel, mAdsRemovalIcon, mAdsRemovalButton);
}
else if (mCurrentAd != null)
{
UiUtils.showIf(mCurrentAd.getType().showAdChoiceIcon(), mAdChoices);
UiUtils.showIf(mPurchaseController.isPurchaseSupported(), mAdsRemovalIcon, mAdsRemovalButton);
UiUtils.show(mIcon, mTitle, mMessage, mActionSmall, mActionContainer, mAdChoicesLabel);
UiUtils.show(mIcon, mTitle, mMessage, mActionSmall, mActionContainer, mActionLarge,
mAdsRemovalButton, mAdChoicesLabel);
if (mOpened)
UiUtils.hide(mActionSmall);
else
UiUtils.hide(mActionContainer, mIcon);
UiUtils.hide(mActionContainer, mActionLarge, mAdsRemovalButton, mIcon);
}
}