package o;

import androidx.recyclerview.widget.RecyclerView;
import androidx.work.impl.foreground.SystemForegroundService;
import java.util.ArrayList;
import java.util.List;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.fg, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class RunnableC1212fg implements Runnable {
    public final /* synthetic */ int l;
    public final int m;
    public final Object n;

    public /* synthetic */ RunnableC1212fg(int i, int i2, Object obj) {
        this.l = i2;
        this.n = obj;
        this.m = i;
    }

    @Override // java.lang.Runnable
    public final void run() {
        AbstractC1157f10 abstractC1157f10;
        switch (this.l) {
            case 0:
                AbstractC0249Jp abstractC0249Jp = (AbstractC0249Jp) ((WT) this.n).m;
                if (abstractC0249Jp != null) {
                    abstractC0249Jp.U(this.m);
                    break;
                }
                break;
            case 1:
                ArrayList arrayList = (ArrayList) this.n;
                int size = arrayList.size();
                int i = 0;
                if (this.m == 1) {
                    while (i < size) {
                        ((AbstractC1814lv) arrayList.get(i)).b();
                        i++;
                    }
                    break;
                } else {
                    while (i < size) {
                        ((AbstractC1814lv) arrayList.get(i)).a();
                        i++;
                    }
                    break;
                }
            case 2:
                RecyclerView recyclerView = ((VN) this.n).s;
                if (!recyclerView.F && (abstractC1157f10 = recyclerView.w) != null) {
                    abstractC1157f10.x0(recyclerView, this.m);
                    break;
                }
                break;
            default:
                ((SystemForegroundService) this.n).p.cancel(this.m);
                break;
        }
    }

    public RunnableC1212fg(List list, int i, Throwable th) {
        this.l = 1;
        AbstractC0249Jp.x(list, "initCallbacks cannot be null");
        this.n = new ArrayList(list);
        this.m = i;
    }
}
