package p037.p107.p108;

import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.RecyclerView.AbstractC0224;
import java.util.Collections;
import java.util.List;
import p037.p107.p108.C2308;
import p037.p107.p108.C2323;
import p037.p107.p108.C2339;

/* JADX INFO: renamed from: މ.ޏ.ށ.އ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public abstract class AbstractC2326<T, VH extends RecyclerView.AbstractC0224> extends RecyclerView.AbstractC0191<VH> {

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public final C2323<T> f7363;

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public final C2323.InterfaceC2324<T> f7364 = new C2327();

    /* JADX INFO: renamed from: މ.ޏ.ށ.އ$֏, reason: contains not printable characters */
    public class C2327 implements C2323.InterfaceC2324<T> {
        public C2327() {
        }

        @Override // p037.p107.p108.C2323.InterfaceC2324
        /* JADX INFO: renamed from: ֏ */
        public void mo4381(List<T> list, List<T> list2) {
            if (AbstractC2326.this == null) {
                throw null;
            }
        }
    }

    public AbstractC2326(C2339.AbstractC2343<T> abstractC2343) {
        C2323<T> c2323 = new C2323<>(new C2307(this), new C2308.C2309(abstractC2343).m4356());
        this.f7363 = c2323;
        c2323.f7358.add(this.f7364);
    }

    @Override // androidx.recyclerview.widget.RecyclerView.AbstractC0191
    /* JADX INFO: renamed from: ֏ */
    public int mo327() {
        return this.f7363.f7360.size();
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public void m4382(List<T> list, boolean z) {
        C2323<T> c2323 = this.f7363;
        int i = c2323.f7361 + 1;
        c2323.f7361 = i;
        if (list != c2323.f7359) {
            List<T> list2 = c2323.f7360;
            if (z && list != null) {
                c2323.f7359 = list;
                c2323.f7360 = Collections.unmodifiableList(list);
                c2323.m4380(list2, null);
            } else if (list == null) {
                int size = c2323.f7359.size();
                c2323.f7359 = null;
                c2323.f7360 = Collections.emptyList();
                c2323.f7355.mo4352(0, size);
                c2323.m4380(list2, null);
            } else {
                List<T> list3 = c2323.f7359;
                if (list3 == null) {
                    c2323.f7359 = list;
                    c2323.f7360 = Collections.unmodifiableList(list);
                    c2323.f7355.mo4355(0, list.size());
                    c2323.m4380(list2, null);
                } else {
                    c2323.f7356.f7313.execute(new RunnableC2320(c2323, list3, list, i, null));
                }
            }
        }
        if (!z || list == null) {
            return;
        }
        this.f1232.m603();
    }
}
