package defpackage;

import android.view.View;
import android.view.ViewPropertyAnimator;
import java.util.ArrayList;

/* renamed from: ᵎʻ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class RunnableC2178 implements Runnable {

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public final /* synthetic */ ArrayList f8587;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final /* synthetic */ int f8588;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public final /* synthetic */ C2669 f8589;

    public /* synthetic */ RunnableC2178(C2669 c2669, ArrayList arrayList, int i) {
        this.f8588 = i;
        this.f8589 = c2669;
        this.f8587 = arrayList;
    }

    @Override // java.lang.Runnable
    public final void run() {
        int i = this.f8588;
        int i2 = 0;
        ArrayList arrayList = this.f8587;
        switch (i) {
            case 0:
                int size = arrayList.size();
                while (true) {
                    C2669 c2669 = this.f8589;
                    if (i2 >= size) {
                        arrayList.clear();
                        c2669.f10364.remove(arrayList);
                        break;
                    } else {
                        Object obj = arrayList.get(i2);
                        i2++;
                        C2032 c2032 = (C2032) obj;
                        AbstractC2313 abstractC2313 = c2032.f8156;
                        int i3 = c2032.f8157;
                        int i4 = c2032.f8155;
                        int i5 = c2032.f8158;
                        int i6 = c2032.f8154;
                        View view = abstractC2313.f9071;
                        int i7 = i5 - i3;
                        int i8 = i6 - i4;
                        if (i7 != 0) {
                            view.animate().translationX(0.0f);
                        }
                        if (i8 != 0) {
                            view.animate().translationY(0.0f);
                        }
                        ViewPropertyAnimator viewPropertyAnimatorAnimate = view.animate();
                        c2669.f10363.add(abstractC2313);
                        viewPropertyAnimatorAnimate.setDuration(c2669.f9738).setListener(new C0089(c2669, abstractC2313, i7, view, i8, viewPropertyAnimatorAnimate, 0)).start();
                    }
                }
            default:
                int size2 = arrayList.size();
                while (true) {
                    C2669 c26692 = this.f8589;
                    if (i2 >= size2) {
                        arrayList.clear();
                        c26692.f10365.remove(arrayList);
                        break;
                    } else {
                        Object obj2 = arrayList.get(i2);
                        i2++;
                        AbstractC2313 abstractC23132 = (AbstractC2313) obj2;
                        View view2 = abstractC23132.f9071;
                        ViewPropertyAnimator viewPropertyAnimatorAnimate2 = view2.animate();
                        c26692.f10358.add(abstractC23132);
                        viewPropertyAnimatorAnimate2.alpha(1.0f).setDuration(c26692.f9740).setListener(new C4156(c26692, abstractC23132, view2, viewPropertyAnimatorAnimate2)).start();
                    }
                }
        }
    }
}
