package defpackage;

import android.view.View;
import android.view.ViewGroup;
import android.view.animation.Animation;
import android.view.animation.AnimationSet;
import android.view.animation.Transformation;

/* renamed from: ᵢᵣᵝ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class RunnableC3291 extends AnimationSet implements Runnable {

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public final View f12329;

    /* renamed from: ᵤᵙᵷ, reason: contains not printable characters */
    public boolean f12330;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final ViewGroup f12331;

    /* renamed from: ᵾᵬ, reason: contains not printable characters */
    public boolean f12332;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public boolean f12333;

    public RunnableC3291(Animation animation, ViewGroup viewGroup, View view) {
        super(false);
        this.f12330 = true;
        this.f12331 = viewGroup;
        this.f12329 = view;
        addAnimation(animation);
        viewGroup.post(this);
    }

    @Override // android.view.animation.AnimationSet, android.view.animation.Animation
    public final boolean getTransformation(long j, Transformation transformation) {
        this.f12330 = true;
        if (this.f12333) {
            return !this.f12332;
        }
        if (!super.getTransformation(j, transformation)) {
            this.f12333 = true;
            ViewTreeObserverOnPreDrawListenerC0337.m1753(this.f12331, this);
        }
        return true;
    }

    @Override // android.view.animation.Animation
    public final boolean getTransformation(long j, Transformation transformation, float f) {
        this.f12330 = true;
        if (this.f12333) {
            return !this.f12332;
        }
        if (!super.getTransformation(j, transformation, f)) {
            this.f12333 = true;
            ViewTreeObserverOnPreDrawListenerC0337.m1753(this.f12331, this);
        }
        return true;
    }

    @Override // java.lang.Runnable
    public final void run() {
        boolean z = this.f12333;
        ViewGroup viewGroup = this.f12331;
        if (z || !this.f12330) {
            viewGroup.endViewTransition(this.f12329);
            this.f12332 = true;
        } else {
            this.f12330 = false;
            viewGroup.post(this);
        }
    }
}
