mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-01-20 21:10:42 +01:00
make sure we show the video Play button if fullscreen and not playing
This commit is contained in:
parent
5adc4fe1bd
commit
e9e6e3e059
@ -579,13 +579,13 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S
|
||||
}
|
||||
}
|
||||
|
||||
mView!!.video_play_outline.animate().alpha(if (isFullscreen) 0f else PLAY_PAUSE_VISIBLE_ALPHA).start()
|
||||
if (!isFullscreen) {
|
||||
mView!!.video_play_outline.animate().alpha(if (isFullscreen && mIsPlaying) 0f else PLAY_PAUSE_VISIBLE_ALPHA).start()
|
||||
if (isFullscreen) {
|
||||
mHidePauseHandler.removeCallbacksAndMessages(null)
|
||||
} else {
|
||||
mHidePauseHandler.postDelayed({
|
||||
mView!!.video_play_outline.animate().alpha(0f).start()
|
||||
}, HIDE_PAUSE_DELAY)
|
||||
} else {
|
||||
mHidePauseHandler.removeCallbacksAndMessages(null)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user