2
0
Fork 1
mirror of https://github.com/FossifyOrg/Gallery.git synced 2025-04-21 02:44:00 +02:00

do not try setting up exoplayer if it is still null

This commit is contained in:
tibbi 2018-07-16 20:15:03 +02:00
parent b47868a049
commit bcae7cfd76

View file

@ -251,7 +251,7 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S
mIsFragmentVisible = menuVisible
if (menuVisible && mWasFragmentInit) {
if (!mIsExoPlayerInitialized) {
if (!mIsExoPlayerInitialized && mExoPlayer != null) {
initExoPlayer()
}