[bugfix]
[小智动画]
This commit is contained in:
yangyakun
2023-11-27 11:59:30 +08:00
parent b7b7626351
commit 0f75f30a6f
3 changed files with 3 additions and 0 deletions

View File

@@ -112,6 +112,7 @@ class FrameAnimatorContainer (resId: Int,
fun start() {
mShouldRun = true
if (mIsRunning) return
mHandler?.removeCallbacksAndMessages(null)
val runnable: Runnable = object : Runnable {
override fun run() {
val imageView = mSoftReferenceImageView!!.get()

View File

@@ -129,6 +129,8 @@ class ZhiView @JvmOverloads constructor(
AvatarManager.enableXiaoZhi(!hasWindowFocus)
if(hasWindowFocus){
currentAnim.reStart()
}else{
currentAnim.stop()
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 105 KiB