From 60505e40bfc6e9120a210d4235fef2397636fe98 Mon Sep 17 00:00:00 2001 From: hexleo Date: Tue, 21 Dec 2021 15:02:02 +0800 Subject: [PATCH] =?UTF-8?q?bug:=20=E8=A7=A3=E5=86=B3recycleview=20view?= =?UTF-8?q?=E5=A4=8D=E7=94=A8=E5=AF=BC=E8=87=B4=E6=97=A0=E6=B3=95=E6=92=AD?= =?UTF-8?q?=E6=94=BE=E7=9A=84=E9=97=AE=E9=A2=98=20close=20#189?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/tencent/qgame/animplayer/AnimPlayer.kt | 1 + .../src/main/java/com/tencent/qgame/animplayer/AnimView.kt | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Android/PlayerProj/animplayer/src/main/java/com/tencent/qgame/animplayer/AnimPlayer.kt b/Android/PlayerProj/animplayer/src/main/java/com/tencent/qgame/animplayer/AnimPlayer.kt index 2dbb1457..8e4e776b 100644 --- a/Android/PlayerProj/animplayer/src/main/java/com/tencent/qgame/animplayer/AnimPlayer.kt +++ b/Android/PlayerProj/animplayer/src/main/java/com/tencent/qgame/animplayer/AnimPlayer.kt @@ -60,6 +60,7 @@ class AnimPlayer(val animView: IAnimView) { fun onSurfaceTextureDestroyed() { isSurfaceAvailable = false + isStartRunning = false decoder?.destroy() audioPlayer?.destroy() } diff --git a/Android/PlayerProj/animplayer/src/main/java/com/tencent/qgame/animplayer/AnimView.kt b/Android/PlayerProj/animplayer/src/main/java/com/tencent/qgame/animplayer/AnimView.kt index e5c4afaf..4a7961bd 100644 --- a/Android/PlayerProj/animplayer/src/main/java/com/tencent/qgame/animplayer/AnimView.kt +++ b/Android/PlayerProj/animplayer/src/main/java/com/tencent/qgame/animplayer/AnimView.kt @@ -182,7 +182,6 @@ open class AnimView @JvmOverloads constructor(context: Context, attrs: Attribute } player.isDetachedFromWindow = true player.onSurfaceTextureDestroyed() - onSizeChangedCalled = false }