From a1e0d077985a897e5a94d22ad53c95abb51e92d4 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 20 Apr 2020 20:11:57 +0200 Subject: [PATCH] fix a glitch with fullscreen view bottom actions being at the top --- .../gallery/pro/activities/ViewPagerActivity.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/ViewPagerActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/ViewPagerActivity.kt index 712f45fe6..a492c4e9f 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/ViewPagerActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/activities/ViewPagerActivity.kt @@ -758,7 +758,8 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View } private fun initBottomActionsLayout() { - bottom_actions.layoutParams.height = resources.getDimension(R.dimen.bottom_actions_height).toInt() + navigationBarHeight + val useNavigationBarHeight = if (navigationBarBottom) navigationBarHeight else 0 + bottom_actions.layoutParams.height = resources.getDimension(R.dimen.bottom_actions_height).toInt() + useNavigationBarHeight if (config.bottomActions) { bottom_actions.beVisible() } else {