fix extended details over video fragments

This commit is contained in:
tibbi 2019-01-04 17:44:59 +01:00
parent 11f437794c
commit 2737a44646

View file

@ -104,10 +104,7 @@ class VideoFragment : ViewPagerFragment() {
instant_next_item.beVisibleIf(allowInstantChange)
}
if (config.showExtendedDetails != mStoredShowExtendedDetails || config.extendedDetails != mStoredExtendedDetails) {
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
}
}