package c.k.b;

import android.view.ViewGroup;
import android.view.animation.Animation;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import c.k.b.k0;

/* JADX INFO: compiled from: FragmentAnim.java */
/* JADX INFO: loaded from: classes.dex */
public class n implements Animation.AnimationListener {
    public final /* synthetic */ ViewGroup a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ Fragment f1697b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ k0.a f1698c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ c.f.f.c f1699d;

    /* JADX INFO: compiled from: FragmentAnim.java */
    public class a implements Runnable {
        public a() {
        }

        @Override // java.lang.Runnable
        public void run() {
            if (n.this.f1697b.getAnimatingAway() != null) {
                n.this.f1697b.setAnimatingAway(null);
                n nVar = n.this;
                ((FragmentManager.d) nVar.f1698c).a(nVar.f1697b, nVar.f1699d);
            }
        }
    }

    public n(ViewGroup viewGroup, Fragment fragment, k0.a aVar, c.f.f.c cVar) {
        this.a = viewGroup;
        this.f1697b = fragment;
        this.f1698c = aVar;
        this.f1699d = cVar;
    }

    @Override // android.view.animation.Animation.AnimationListener
    public void onAnimationEnd(Animation animation) {
        this.a.post(new a());
    }

    @Override // android.view.animation.Animation.AnimationListener
    public void onAnimationRepeat(Animation animation) {
    }

    @Override // android.view.animation.Animation.AnimationListener
    public void onAnimationStart(Animation animation) {
    }
}
