From 0ca8cca3584b2361f24e9358a13ebc56c50cf97d Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 29 Jun 2018 23:35:55 +0200 Subject: [PATCH] do not hide the video Play button if we are at the beginning --- .../com/simplemobiletools/gallery/fragments/VideoFragment.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 c61af3bbd..288856d5b 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/VideoFragment.kt @@ -584,7 +584,9 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S mHidePauseHandler.removeCallbacksAndMessages(null) } else { mHidePauseHandler.postDelayed({ - mView!!.video_play_outline.animate().alpha(0f).start() + if (mExoPlayer?.currentPosition ?: 0 > 0) { + mView!!.video_play_outline.animate().alpha(0f).start() + } }, HIDE_PAUSE_DELAY) } }