diff --git a/common/src/main/java/dev/lucasnlm/antimine/common/level/view/CommonLevelFragment.kt b/common/src/main/java/dev/lucasnlm/antimine/common/level/view/CommonLevelFragment.kt index 09b5ed1e..5a85333c 100644 --- a/common/src/main/java/dev/lucasnlm/antimine/common/level/view/CommonLevelFragment.kt +++ b/common/src/main/java/dev/lucasnlm/antimine/common/level/view/CommonLevelFragment.kt @@ -65,7 +65,7 @@ abstract class CommonLevelFragment(@LayoutRes val contentLayoutId: Int) : Fragme val recyclerViewHeight = (dimensionRepository.areaSize() * boardHeight) val separatorsHeight = (2 * dimensionRepository.areaSeparator() * (boardHeight - 1)) val calculatedHeight = (height - recyclerViewHeight - separatorsHeight - adsHeight) - return ((calculatedHeight / 2) - adsHeight).coerceAtLeast(0f).toInt() + return ((calculatedHeight / 2) - adsHeight).coerceAtLeast(0.0f).toInt() } open fun dpFromPx(context: Context, px: Float): Int {