Update common/src/main/java/dev/lucasnlm/antimine/common/level/view/CommonLevelFragment.kt
This commit is contained in:
parent
10597c61a9
commit
589bfff043
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue