package androidx.appcompat.view.menu;

import X6FRs_4.KQgRr5e_0.LGe8pk_15.NzhupJ_29;
import X6FRs_4.KQgRr5e_0.YghfZG_14.XnFJ5_9.FSaI4_7;
import X6FRs_4.KQgRr5e_0.YghfZG_14.XnFJ5_9.LGe8pk_15;
import X6FRs_4.KQgRr5e_0.YghfZG_14.XnFJ5_9.XnFJ5_9;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
/* loaded from: classes.dex */
public final class ExpandedMenuView extends ListView implements FSaI4_7.QxJ9d_1, LGe8pk_15, AdapterView.OnItemClickListener {
    public static final int[] KQgRr5e_0 = {16842964, 16843049};

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public int f1957KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public FSaI4_7 f1958KQgRr5e_0;

    public ExpandedMenuView(Context context, AttributeSet attributeSet) {
        this(context, attributeSet, 16842868);
    }

    @Override // X6FRs_4.KQgRr5e_0.YghfZG_14.XnFJ5_9.FSaI4_7.QxJ9d_1
    public boolean KQgRr5e_0(XnFJ5_9 xnFJ5_9) {
        return this.f1958KQgRr5e_0.performItemAction(xnFJ5_9, 0);
    }

    public int getWindowAnimations() {
        return this.f1957KQgRr5e_0;
    }

    @Override // X6FRs_4.KQgRr5e_0.YghfZG_14.XnFJ5_9.LGe8pk_15
    public void initialize(FSaI4_7 fSaI4_7) {
        this.f1958KQgRr5e_0 = fSaI4_7;
    }

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

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

    public ExpandedMenuView(Context context, AttributeSet attributeSet, int i) {
        super(context, attributeSet);
        setOnItemClickListener(this);
        NzhupJ_29 KQgRr5e_02 = NzhupJ_29.KQgRr5e_0(context, attributeSet, KQgRr5e_0, i, 0);
        if (KQgRr5e_02.m419KQgRr5e_0(0)) {
            setBackgroundDrawable(KQgRr5e_02.m416KQgRr5e_0(0));
        }
        if (KQgRr5e_02.m419KQgRr5e_0(1)) {
            setDivider(KQgRr5e_02.m416KQgRr5e_0(1));
        }
        KQgRr5e_02.KQgRr5e_0();
    }
}
