mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
fix extended details over video fragments
This commit is contained in:
parent
11f437794c
commit
2737a44646
1 changed files with 4 additions and 5 deletions
|
@ -104,10 +104,7 @@ class VideoFragment : ViewPagerFragment() {
|
||||||
instant_next_item.beVisibleIf(allowInstantChange)
|
instant_next_item.beVisibleIf(allowInstantChange)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.showExtendedDetails != mStoredShowExtendedDetails || config.extendedDetails != mStoredExtendedDetails) {
|
checkExtendedDetails()
|
||||||
checkExtendedDetails()
|
|
||||||
}
|
|
||||||
|
|
||||||
storeStateVariables()
|
storeStateVariables()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -199,6 +196,8 @@ class VideoFragment : ViewPagerFragment() {
|
||||||
|
|
||||||
private fun getExtendedDetailsY(height: Int): Float {
|
private fun getExtendedDetailsY(height: Int): Float {
|
||||||
val smallMargin = resources.getDimension(R.dimen.small_margin)
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue