[6.2.0]
[bugfix] [小智动画]
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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 |
Reference in New Issue
Block a user