mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-02-18 11:54:21 +01:00
do not try setting up exoplayer if it is still null
This commit is contained in:
parent
b47868a049
commit
bcae7cfd76
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S
|
||||||
|
|
||||||
mIsFragmentVisible = menuVisible
|
mIsFragmentVisible = menuVisible
|
||||||
if (menuVisible && mWasFragmentInit) {
|
if (menuVisible && mWasFragmentInit) {
|
||||||
if (!mIsExoPlayerInitialized) {
|
if (!mIsExoPlayerInitialized && mExoPlayer != null) {
|
||||||
initExoPlayer()
|
initExoPlayer()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue