个播房闪退问题修复

This commit is contained in:
huangjian
2022-07-19 18:58:29 +08:00
parent 6a2a4167fe
commit e2ab878f36

View File

@@ -24,7 +24,9 @@ class FakeSingleRoomFragment : BaseViewBindingFragment<FragmentFakeSingleRoomBin
private val bgPicture = arrayOf("")
private var requesting = false
private val stopRunnable = {
binding.svgaImageViewBg.stopAnimation()
if (!isDestroyView) {
binding.svgaImageViewBg.stopAnimation()
}
}
override fun init() {
@@ -77,6 +79,7 @@ class FakeSingleRoomFragment : BaseViewBindingFragment<FragmentFakeSingleRoomBin
lastRequestTime = 0
needJump = false
requesting = false
binding.svgaImageViewBg.removeCallbacks(stopRunnable)
binding.svgaImageViewBg.postDelayed(stopRunnable, 10 * 1000)
}