个播房闪退问题修复
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user