package androidx.fragment.app;

import java.util.ArrayList;
import o.AbstractC0126Ew;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class c implements Runnable {
    public final /* synthetic */ int l = 1;
    public final /* synthetic */ x m;
    public final /* synthetic */ Object n;

    public c(f fVar, ArrayList arrayList, x xVar) {
        this.n = arrayList;
        this.m = xVar;
    }

    @Override // java.lang.Runnable
    public final void run() {
        switch (this.l) {
            case 0:
                ArrayList arrayList = (ArrayList) this.n;
                x xVar = this.m;
                if (arrayList.contains(xVar)) {
                    arrayList.remove(xVar);
                    AbstractC0126Ew.a(xVar.c.mView, xVar.a);
                    break;
                }
                break;
            default:
                ArrayList arrayList2 = ((f) this.n).b;
                x xVar2 = this.m;
                if (arrayList2.contains(xVar2)) {
                    AbstractC0126Ew.a(xVar2.c.mView, xVar2.a);
                    break;
                }
                break;
        }
    }

    public c(f fVar, x xVar) {
        this.n = fVar;
        this.m = xVar;
    }
}
