mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-04-24 07:07:22 +02:00
fix #870, do not release exoPlayer on surface destroy
This commit is contained in:
parent
abdb91dbbe
commit
8d7366d228
@ -500,10 +500,7 @@ class VideoFragment : ViewPagerFragment(), TextureView.SurfaceTextureListener, S
|
||||
|
||||
override fun onSurfaceTextureUpdated(surface: SurfaceTexture?) {}
|
||||
|
||||
override fun onSurfaceTextureDestroyed(surface: SurfaceTexture?): Boolean {
|
||||
releaseExoPlayer()
|
||||
return false
|
||||
}
|
||||
override fun onSurfaceTextureDestroyed(surface: SurfaceTexture?) = false
|
||||
|
||||
override fun onSurfaceTextureAvailable(surface: SurfaceTexture?, width: Int, height: Int) {
|
||||
Thread {
|
||||
|
Loading…
x
Reference in New Issue
Block a user