mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
fix #1265, hide the Panorama button at fullscreen view
This commit is contained in:
@ -515,6 +515,9 @@ class PhotoFragment : ViewPagerFragment() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mView.panorama_outline.beVisibleIf(mIsPanorama)
|
mView.panorama_outline.beVisibleIf(mIsPanorama)
|
||||||
|
if (mIsFullscreen) {
|
||||||
|
mView.panorama_outline.alpha = 0f
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getImageOrientation(): Int {
|
private fun getImageOrientation(): Int {
|
||||||
@ -611,14 +614,20 @@ class PhotoFragment : ViewPagerFragment() {
|
|||||||
|
|
||||||
override fun fullscreenToggled(isFullscreen: Boolean) {
|
override fun fullscreenToggled(isFullscreen: Boolean) {
|
||||||
this.mIsFullscreen = isFullscreen
|
this.mIsFullscreen = isFullscreen
|
||||||
mView.photo_details.apply {
|
mView.apply {
|
||||||
if (mStoredShowExtendedDetails && isVisible()) {
|
photo_details.apply {
|
||||||
animate().y(getExtendedDetailsY(height))
|
if (mStoredShowExtendedDetails && isVisible()) {
|
||||||
|
animate().y(getExtendedDetailsY(height))
|
||||||
|
|
||||||
if (mStoredHideExtendedDetails) {
|
if (mStoredHideExtendedDetails) {
|
||||||
animate().alpha(if (isFullscreen) 0f else 1f).start()
|
animate().alpha(if (isFullscreen) 0f else 1f).start()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (mIsPanorama) {
|
||||||
|
panorama_outline.animate().alpha(if (isFullscreen) 0f else 1f).start()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user