From e9e6e3e05911de09136c3d88377041f8f23fca59 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 29 Jun 2018 14:59:52 +0200 Subject: [PATCH] make sure we show the video Play button if fullscreen and not playing --- .../simplemobiletools/gallery/fragments/VideoFragment.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt index fc6bbbbef..c61af3bbd 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt @@ -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) } }