package o;

import android.content.Context;
import android.graphics.drawable.Drawable;
import android.view.MenuItem;
import android.view.SubMenu;
import android.view.View;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.pb0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class SubMenuC2155pb0 extends CO implements SubMenu {
    public final LO A;
    public final CO z;

    public SubMenuC2155pb0(Context context, CO co, LO lo) {
        super(context);
        this.z = co;
        this.A = lo;
    }

    @Override // o.CO
    public final boolean d(LO lo) {
        return this.z.d(lo);
    }

    @Override // o.CO
    public final boolean e(CO co, MenuItem menuItem) {
        return super.e(co, menuItem) || this.z.e(co, menuItem);
    }

    @Override // o.CO
    public final boolean f(LO lo) {
        return this.z.f(lo);
    }

    @Override // android.view.SubMenu
    public final MenuItem getItem() {
        return this.A;
    }

    @Override // o.CO
    public final String j() {
        LO lo = this.A;
        int i = lo != null ? lo.a : 0;
        if (i == 0) {
            return null;
        }
        return AbstractC0126Ew.j(i, "android:menu:actionviewstates:");
    }

    @Override // o.CO
    public final CO k() {
        return this.z.k();
    }

    @Override // o.CO
    public final boolean m() {
        return this.z.m();
    }

    @Override // o.CO
    public final boolean n() {
        return this.z.n();
    }

    @Override // o.CO
    public final boolean o() {
        return this.z.o();
    }

    @Override // o.CO, android.view.Menu
    public final void setGroupDividerEnabled(boolean z) {
        this.z.setGroupDividerEnabled(z);
    }

    @Override // android.view.SubMenu
    public final SubMenu setHeaderIcon(Drawable drawable) {
        u(0, null, 0, drawable, null);
        return this;
    }

    @Override // android.view.SubMenu
    public final SubMenu setHeaderTitle(CharSequence charSequence) {
        u(0, charSequence, 0, null, null);
        return this;
    }

    @Override // android.view.SubMenu
    public final SubMenu setHeaderView(View view) {
        u(0, null, 0, null, view);
        return this;
    }

    @Override // android.view.SubMenu
    public final SubMenu setIcon(Drawable drawable) {
        this.A.setIcon(drawable);
        return this;
    }

    @Override // o.CO, android.view.Menu
    public final void setQwertyMode(boolean z) {
        this.z.setQwertyMode(z);
    }

    @Override // android.view.SubMenu
    public final SubMenu setHeaderIcon(int i) {
        u(0, null, i, null, null);
        return this;
    }

    @Override // android.view.SubMenu
    public final SubMenu setHeaderTitle(int i) {
        u(i, null, 0, null, null);
        return this;
    }

    @Override // android.view.SubMenu
    public final SubMenu setIcon(int i) {
        this.A.setIcon(i);
        return this;
    }
}
