mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
fix getting navigation bar height too
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user