make sure the play/pause button is hidden if the fragment isnt created at fullscreen

This commit is contained in:
tibbi 2018-06-17 21:32:35 +02:00
parent 7a38862e8c
commit 79aa2306be
1 changed files with 2 additions and 0 deletions

View File

@ -77,6 +77,8 @@ class VideoFragment : ViewPagerFragment(), SurfaceHolder.Callback, SeekBar.OnSee
}
mIsFullscreen = activity!!.window.decorView.systemUiVisibility and View.SYSTEM_UI_FLAG_FULLSCREEN == View.SYSTEM_UI_FLAG_FULLSCREEN
mView!!.video_play_outline.alpha = if (mIsFullscreen) 0f else 1f
setupPlayer()
if (savedInstanceState != null) {
mCurrTime = savedInstanceState.getInt(PROGRESS)