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

View file

@ -584,7 +584,9 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S
mHidePauseHandler.removeCallbacksAndMessages(null) mHidePauseHandler.removeCallbacksAndMessages(null)
} else { } else {
mHidePauseHandler.postDelayed({ mHidePauseHandler.postDelayed({
if (mExoPlayer?.currentPosition ?: 0 > 0) {
mView!!.video_play_outline.animate().alpha(0f).start() mView!!.video_play_outline.animate().alpha(0f).start()
}
}, HIDE_PAUSE_DELAY) }, HIDE_PAUSE_DELAY)
} }
} }