make sure we show the video Play button if fullscreen and not playing
This commit is contained in:
parent
5adc4fe1bd
commit
e9e6e3e059
1 changed files with 4 additions and 4 deletions
|
@ -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()
|
mView!!.video_play_outline.animate().alpha(if (isFullscreen && mIsPlaying) 0f else PLAY_PAUSE_VISIBLE_ALPHA).start()
|
||||||
if (!isFullscreen) {
|
if (isFullscreen) {
|
||||||
|
mHidePauseHandler.removeCallbacksAndMessages(null)
|
||||||
|
} else {
|
||||||
mHidePauseHandler.postDelayed({
|
mHidePauseHandler.postDelayed({
|
||||||
mView!!.video_play_outline.animate().alpha(0f).start()
|
mView!!.video_play_outline.animate().alpha(0f).start()
|
||||||
}, HIDE_PAUSE_DELAY)
|
}, HIDE_PAUSE_DELAY)
|
||||||
} else {
|
|
||||||
mHidePauseHandler.removeCallbacksAndMessages(null)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue