From 2737a4464648bf8b5db339d5c0cff1e7e77f448e Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 4 Jan 2019 17:44:59 +0100 Subject: [PATCH] fix extended details over video fragments --- .../gallery/pro/fragments/VideoFragment.kt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt index 586edfaa4..b9c02b63a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/VideoFragment.kt @@ -104,10 +104,7 @@ class VideoFragment : ViewPagerFragment() { instant_next_item.beVisibleIf(allowInstantChange) } - if (config.showExtendedDetails != mStoredShowExtendedDetails || config.extendedDetails != mStoredExtendedDetails) { - checkExtendedDetails() - } - + checkExtendedDetails() storeStateVariables() } @@ -199,6 +196,8 @@ class VideoFragment : ViewPagerFragment() { private fun getExtendedDetailsY(height: Int): Float { val smallMargin = resources.getDimension(R.dimen.small_margin) - return context!!.realScreenSize.y.toFloat() - height - smallMargin + val fullscreenOffset = smallMargin + if (mIsFullscreen) 0 else context!!.navigationBarHeight + val actionsHeight = if (context!!.config.bottomActions && !mIsFullscreen) resources.getDimension(R.dimen.bottom_actions_height) else 0f + return context!!.realScreenSize.y - height - actionsHeight - fullscreenOffset } }