package o;

import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.view.accessibility.AccessibilityEvent;
import android.view.accessibility.AccessibilityNodeInfo;
import androidx.recyclerview.widget.RecyclerView;
import java.util.WeakHashMap;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.u10, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2583u10 extends C2011o0 {
    public final C2678v10 d;
    public final WeakHashMap e = new WeakHashMap();

    public C2583u10(C2678v10 c2678v10) {
        this.d = c2678v10;
    }

    @Override // o.C2011o0
    public final boolean a(View view, AccessibilityEvent accessibilityEvent) {
        C2011o0 c2011o0 = (C2011o0) this.e.get(view);
        return c2011o0 != null ? c2011o0.a(view, accessibilityEvent) : this.a.dispatchPopulateAccessibilityEvent(view, accessibilityEvent);
    }

    @Override // o.C2011o0
    public final OD b(View view) {
        C2011o0 c2011o0 = (C2011o0) this.e.get(view);
        return c2011o0 != null ? c2011o0.b(view) : super.b(view);
    }

    @Override // o.C2011o0
    public final void c(View view, AccessibilityEvent accessibilityEvent) {
        C2011o0 c2011o0 = (C2011o0) this.e.get(view);
        if (c2011o0 != null) {
            c2011o0.c(view, accessibilityEvent);
        } else {
            super.c(view, accessibilityEvent);
        }
    }

    @Override // o.C2011o0
    public final void d(View view, H0 h0) {
        AccessibilityNodeInfo accessibilityNodeInfo = h0.a;
        C2678v10 c2678v10 = this.d;
        RecyclerView recyclerView = c2678v10.d;
        RecyclerView recyclerView2 = c2678v10.d;
        boolean zK = recyclerView.K();
        View.AccessibilityDelegate accessibilityDelegate = this.a;
        if (zK || recyclerView2.getLayoutManager() == null) {
            accessibilityDelegate.onInitializeAccessibilityNodeInfo(view, accessibilityNodeInfo);
            return;
        }
        recyclerView2.getLayoutManager().U(view, h0);
        C2011o0 c2011o0 = (C2011o0) this.e.get(view);
        if (c2011o0 != null) {
            c2011o0.d(view, h0);
        } else {
            accessibilityDelegate.onInitializeAccessibilityNodeInfo(view, accessibilityNodeInfo);
        }
    }

    @Override // o.C2011o0
    public final void e(View view, AccessibilityEvent accessibilityEvent) {
        C2011o0 c2011o0 = (C2011o0) this.e.get(view);
        if (c2011o0 != null) {
            c2011o0.e(view, accessibilityEvent);
        } else {
            super.e(view, accessibilityEvent);
        }
    }

    @Override // o.C2011o0
    public final boolean f(ViewGroup viewGroup, View view, AccessibilityEvent accessibilityEvent) {
        C2011o0 c2011o0 = (C2011o0) this.e.get(viewGroup);
        return c2011o0 != null ? c2011o0.f(viewGroup, view, accessibilityEvent) : this.a.onRequestSendAccessibilityEvent(viewGroup, view, accessibilityEvent);
    }

    @Override // o.C2011o0
    public final boolean g(View view, int i, Bundle bundle) {
        C2678v10 c2678v10 = this.d;
        RecyclerView recyclerView = c2678v10.d;
        RecyclerView recyclerView2 = c2678v10.d;
        if (recyclerView.K() || recyclerView2.getLayoutManager() == null) {
            return super.g(view, i, bundle);
        }
        C2011o0 c2011o0 = (C2011o0) this.e.get(view);
        if (c2011o0 != null) {
            if (c2011o0.g(view, i, bundle)) {
                return true;
            }
        } else if (super.g(view, i, bundle)) {
            return true;
        }
        C1729l10 c1729l10 = recyclerView2.getLayoutManager().b.m;
        return false;
    }

    @Override // o.C2011o0
    public final void h(View view, int i) {
        C2011o0 c2011o0 = (C2011o0) this.e.get(view);
        if (c2011o0 != null) {
            c2011o0.h(view, i);
        } else {
            super.h(view, i);
        }
    }

    @Override // o.C2011o0
    public final void i(View view, AccessibilityEvent accessibilityEvent) {
        C2011o0 c2011o0 = (C2011o0) this.e.get(view);
        if (c2011o0 != null) {
            c2011o0.i(view, accessibilityEvent);
        } else {
            super.i(view, accessibilityEvent);
        }
    }
}
