package androidx.appcompat.view.menu;

import android.R;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import defpackage.C1570;
import defpackage.C2652;
import defpackage.InterfaceC1230;
import defpackage.InterfaceC5020;
import defpackage.MenuC2418;

/* loaded from: classes3.dex */
public final class ExpandedMenuView extends ListView implements InterfaceC5020, InterfaceC1230, AdapterView.OnItemClickListener {

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public static final int[] f51 = {R.attr.background, R.attr.divider};

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public MenuC2418 f52;

    public ExpandedMenuView(Context context, AttributeSet attributeSet) {
        this(context, attributeSet, R.attr.listViewStyle);
    }

    public ExpandedMenuView(Context context, AttributeSet attributeSet, int i) {
        super(context, attributeSet);
        setOnItemClickListener(this);
        C1570 c1570M4541 = C1570.m4541(context, attributeSet, f51, i);
        TypedArray typedArray = (TypedArray) c1570M4541.f6230;
        if (typedArray.hasValue(0)) {
            setBackgroundDrawable(c1570M4541.m4550(0));
        }
        if (typedArray.hasValue(1)) {
            setDivider(c1570M4541.m4550(1));
        }
        c1570M4541.m4542();
    }

    public int getWindowAnimations() {
        return 0;
    }

    @Override // android.widget.ListView, android.widget.AbsListView, android.widget.AdapterView, android.view.ViewGroup, android.view.View
    public final void onDetachedFromWindow() {
        super.onDetachedFromWindow();
        setChildrenDrawingCacheEnabled(false);
    }

    @Override // android.widget.AdapterView.OnItemClickListener
    public final void onItemClick(AdapterView adapterView, View view, int i, long j) {
        mo6((C2652) getAdapter().getItem(i));
    }

    @Override // defpackage.InterfaceC5020
    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    public final boolean mo6(C2652 c2652) {
        return this.f52.m6189(c2652, null, 0);
    }

    @Override // defpackage.InterfaceC1230
    /* renamed from: ᵴᵳ, reason: contains not printable characters */
    public final void mo7(MenuC2418 menuC2418) {
        this.f52 = menuC2418;
    }
}
