-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Description
When looking at the samples, I've noticed their calculation is losing the precision in a wrong way, so they can actually fail to get the ad that fits the size properly:
Line 69 in ab797ea
| private val adWidth: Int |
Line 50 in ab797ea
| private val adSize: AdSize |
The conversion should be like this:
val displayMetrics = resources.displayMetrics
val adWidthInDp = TypedValueCompat.deriveDimension(TypedValue.COMPLEX_UNIT_DIP, adWidthPixels.toFloat(), displayMetrics)
Metadata
Metadata
Assignees
Labels
No labels