package com.google.android.material.floatingactionbutton;

import android.animation.Animator;
import defpackage.rq6;

/* JADX INFO: loaded from: classes2.dex */
class AnimatorTracker {

    @rq6
    private Animator currentAnimator;

    public void cancelCurrent() {
        Animator animator = this.currentAnimator;
        if (animator != null) {
            animator.cancel();
        }
    }

    public void clear() {
        this.currentAnimator = null;
    }

    public void onNextAnimationStart(Animator animator) {
        cancelCurrent();
        this.currentAnimator = animator;
    }
}
