do not hide the video Play button if we are at the beginning

This commit is contained in:
tibbi 2018-06-29 23:35:55 +02:00
parent adc5b9b856
commit 0ca8cca358
1 changed files with 3 additions and 1 deletions

View File

@ -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)
}
}