From 430fa3a1aaf9f813b999fe0a398196b05fe99dbf Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 2 Oct 2018 16:33:35 +0200 Subject: [PATCH] fix getting navigation bar height too --- .../kotlin/com/simplemobiletools/gallery/extensions/Context.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/Context.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/Context.kt index dfd694162..41cf947d1 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/Context.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/Context.kt @@ -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() }