QQ浏览器 v12.2.3.7053版本的 MD5 值为:8285ab3059e5c8b521a264dfbc5c3685
以下内容为反编译后的 SuccessTipViewHelper.java 源代码,内容仅作参考
package com.tencent.mtt.file.pagecommon.views;
import android.animation.Animator;
import android.content.Context;
import android.view.View;
import com.tencent.mtt.lottie.LottieAnimationView;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
public class SuccessTipViewHelper implements Animator.AnimatorListener {
private Context f64432a;
private LottieAnimationView f64433b;
private List<AnimationEnd> f64434c = new ArrayList();
public interface AnimationEnd {
void a(Animator animator);
}
public SuccessTipViewHelper(Context context) {
this.f64432a = context;
this.f64433b = new LottieAnimationView(context);
this.f64433b.setAnimationFromUrl("https://static.res.qq.com/qbt/process/success_tip_80.json");
}
public View a() {
return this.f64433b;
}
public void a(AnimationEnd animationEnd) {
if (this.f64434c.isEmpty()) {
this.f64433b.addAnimatorListener(this);
}
this.f64434c.add(animationEnd);
}
public void b() {
LottieAnimationView lottieAnimationView = this.f64433b;
if (lottieAnimationView == null) {
return;
}
lottieAnimationView.playAnimation();
}
public void b(AnimationEnd animationEnd) {
this.f64434c.remove(animationEnd);
if (this.f64434c.isEmpty()) {
this.f64433b.removeAnimatorListener(this);
}
}
public void c() {
LottieAnimationView lottieAnimationView = this.f64433b;
if (lottieAnimationView != null) {
lottieAnimationView.cancelAnimation();
}
}
@Override
public void onAnimationCancel(Animator animator) {
}
@Override
public void onAnimationEnd(Animator animator) {
Iterator it = new LinkedList(this.f64434c).iterator();
while (it.hasNext()) {
((AnimationEnd) it.next()).a(animator);
}
}
@Override
public void onAnimationRepeat(Animator animator) {
}
@Override
public void onAnimationStart(Animator animator) {
}
}