Skip to content

Commit

Permalink
Banner Size Update (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
bichenwang authored Jul 22, 2024
1 parent 416f1c1 commit b3a16b5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ package com.chartboost.mediation.referenceadapter.adapter
import android.app.Activity
import android.content.Context
import android.util.Size
import com.chartboost.chartboostmediationsdk.ad.ChartboostMediationBannerAdView.ChartboostMediationBannerSize.Companion.asSize
import com.chartboost.chartboostmediationsdk.domain.*
import com.chartboost.chartboostmediationsdk.utils.LogController
import com.chartboost.chartboostmediationsdk.utils.PartnerLogController
Expand Down Expand Up @@ -247,7 +248,7 @@ class ReferenceAdapter : PartnerAdapter {
ReferenceBanner(
context,
request.partnerPlacement,
chartboostMediationToReferenceBannerSize(request.bannerSize?.size),
chartboostMediationToReferenceBannerSize(request.bannerSize?.asSize()),
)

return ad.load(
Expand Down Expand Up @@ -470,7 +471,7 @@ class ReferenceAdapter : PartnerAdapter {
ad: Any,
request: PartnerAdLoadRequest,
): PartnerAd {
val adSize = ReferenceSdk.getOversizedAdSize(request.bannerSize?.size ?: Size(1, 1))
val adSize = ReferenceSdk.getOversizedAdSize(request.bannerSize?.asSize() ?: Size(1, 1))
return PartnerAd(
ad,
mapOf(
Expand Down

0 comments on commit b3a16b5

Please sign in to comment.