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 RunnableC0379 implements Runnable {

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

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

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

    public /* synthetic */ RunnableC0379(C2669 c2669, ArrayList arrayList, int i) {
        this.f2177 = i;
        this.f2178 = c2669;
        this.f2176 = arrayList;
    }

    @Override // java.lang.Runnable
    public final void run() {
        int i = this.f2177;
        int i2 = 0;
        ArrayList arrayList = this.f2176;
        switch (i) {
            case 0:
                int size = arrayList.size();
                while (true) {
                    C2669 c2669 = this.f2178;
                    if (i2 >= size) {
                        arrayList.clear();
                        c2669.f10364.remove(arrayList);
                        break;
                    } else {
                        Object obj = arrayList.get(i2);
                        i2++;
                        C1198 c1198 = (C1198) obj;
                        AbstractC2313 abstractC2313 = c1198.f5106;
                        int i3 = c1198.f5107;
                        int i4 = c1198.f5105;
                        int i5 = c1198.f5108;
                        int i6 = c1198.f5104;
                        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, 1)).start();
                    }
                }
            default:
                int size2 = arrayList.size();
                while (true) {
                    C2669 c26692 = this.f2178;
                    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 C4736(c26692, abstractC23132, view2, viewPropertyAnimatorAnimate2)).start();
                    }
                }
        }
    }
}
