mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-04-22 22:27:33 +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 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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user