fix #870, do not release exoPlayer on surface destroy

This commit is contained in:
tibbi 2018-07-26 12:56:14 +02:00
parent abdb91dbbe
commit 8d7366d228

View file

@ -500,10 +500,7 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S
override fun onSurfaceTextureUpdated(surface: SurfaceTexture?) {} override fun onSurfaceTextureUpdated(surface: SurfaceTexture?) {}
override fun onSurfaceTextureDestroyed(surface: SurfaceTexture?): Boolean { override fun onSurfaceTextureDestroyed(surface: SurfaceTexture?) = false
releaseExoPlayer()
return false
}
override fun onSurfaceTextureAvailable(surface: SurfaceTexture?, width: Int, height: Int) { override fun onSurfaceTextureAvailable(surface: SurfaceTexture?, width: Int, height: Int) {
Thread { Thread {