fix getting navigation bar height too

This commit is contained in:
tibbi 2018-10-02 16:33:35 +02:00
parent 9f08c02330
commit 430fa3a1aa

View file

@ -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()
}