package X6FRs_4.JZJr_16;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.os.Build;
import java.util.ArrayList;
/* compiled from: AnimatorUtils.java */
/* loaded from: classes.dex */
public class KQgRr5e_0 {

    /* compiled from: AnimatorUtils.java */
    /* renamed from: X6FRs_4.JZJr_16.KQgRr5e_0$KQgRr5e_0  reason: collision with other inner class name */
    /* loaded from: classes.dex */
    public interface InterfaceC0050KQgRr5e_0 {
        void onAnimationPause(Animator animator);

        void onAnimationResume(Animator animator);
    }

    public static void KQgRr5e_0(Animator animator, AnimatorListenerAdapter animatorListenerAdapter) {
        if (Build.VERSION.SDK_INT >= 19) {
            animator.addPauseListener(animatorListenerAdapter);
        }
    }

    public static void QxJ9d_1(Animator animator) {
        if (Build.VERSION.SDK_INT >= 19) {
            animator.resume();
            return;
        }
        ArrayList<Animator.AnimatorListener> listeners = animator.getListeners();
        if (listeners != null) {
            int size = listeners.size();
            for (int i = 0; i < size; i++) {
                Animator.AnimatorListener animatorListener = listeners.get(i);
                if (animatorListener instanceof InterfaceC0050KQgRr5e_0) {
                    ((InterfaceC0050KQgRr5e_0) animatorListener).onAnimationResume(animator);
                }
            }
        }
    }

    public static void KQgRr5e_0(Animator animator) {
        if (Build.VERSION.SDK_INT >= 19) {
            animator.pause();
            return;
        }
        ArrayList<Animator.AnimatorListener> listeners = animator.getListeners();
        if (listeners != null) {
            int size = listeners.size();
            for (int i = 0; i < size; i++) {
                Animator.AnimatorListener animatorListener = listeners.get(i);
                if (animatorListener instanceof InterfaceC0050KQgRr5e_0) {
                    ((InterfaceC0050KQgRr5e_0) animatorListener).onAnimationPause(animator);
                }
            }
        }
    }
}
