forked from organicmaps/organicmaps
[android] Fixed small action button in banner
This commit is contained in:
parent
2c51aaffa3
commit
83b9eb0dbf
1 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue