mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-01-31 12:16:44 +01:00
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
|
internal val Context.navigationBarSize: Point
|
||||||
get() = when {
|
get() = when {
|
||||||
navigationBarRight -> Point(realScreenSize.x - usableScreenSize.x, usableScreenSize.y)
|
navigationBarRight -> Point(newNavigationBarHeight, usableScreenSize.y)
|
||||||
navigationBarBottom -> Point(usableScreenSize.x, newNavigationBarHeight)
|
navigationBarBottom -> Point(usableScreenSize.x, newNavigationBarHeight)
|
||||||
else -> Point()
|
else -> Point()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue