fix getting navigation bar height too
This commit is contained in:
parent
9f08c02330
commit
430fa3a1aa
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ val Context.navigationBarWidth: Int get() = if (navigationBarRight) navigationBa
|
|||
|
||||
internal val Context.navigationBarSize: Point
|
||||
get() = when {
|
||||
navigationBarRight -> Point(realScreenSize.x - usableScreenSize.x, usableScreenSize.y)
|
||||
navigationBarRight -> Point(newNavigationBarHeight, usableScreenSize.y)
|
||||
navigationBarBottom -> Point(usableScreenSize.x, newNavigationBarHeight)
|
||||
else -> Point()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue