Skip to content

Commit

Permalink
Merge pull request #195 from Tencent/bugfix/android_state_error
Browse files Browse the repository at this point in the history
bug: 解决recycleview view复用导致无法播放的问题 close #189
  • Loading branch information
hexleo authored Jan 11, 2022
2 parents 5cbc95f + 60505e4 commit 6d47f2d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class AnimPlayer(val animView: IAnimView) {

fun onSurfaceTextureDestroyed() {
isSurfaceAvailable = false
isStartRunning = false
decoder?.destroy()
audioPlayer?.destroy()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ open class AnimView @JvmOverloads constructor(context: Context, attrs: Attribute
}
player.isDetachedFromWindow = true
player.onSurfaceTextureDestroyed()
onSizeChangedCalled = false
}


Expand Down

0 comments on commit 6d47f2d

Please sign in to comment.