package X6FRs_4.KQgRr5e_0.YghfZG_14.XnFJ5_9;

import X6FRs_4.KQgRr5e_0.YghfZG_14.XnFJ5_9.FSaI4_7;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.view.Menu;
import android.view.MenuItem;
import android.view.SubMenu;
import android.view.View;
/* compiled from: SubMenuBuilder.java */
/* loaded from: classes.dex */
public class ZzDuCHW_20 extends FSaI4_7 implements SubMenu {
    public XnFJ5_9 mItem;
    public FSaI4_7 mParentMenu;

    public ZzDuCHW_20(Context context, FSaI4_7 fSaI4_7, XnFJ5_9 xnFJ5_9) {
        super(context);
        this.mParentMenu = fSaI4_7;
        this.mItem = xnFJ5_9;
    }

    @Override // X6FRs_4.KQgRr5e_0.YghfZG_14.XnFJ5_9.FSaI4_7
    public boolean collapseItemActionView(XnFJ5_9 xnFJ5_9) {
        return this.mParentMenu.collapseItemActionView(xnFJ5_9);
    }

    @Override // X6FRs_4.KQgRr5e_0.YghfZG_14.XnFJ5_9.FSaI4_7
    public boolean dispatchMenuItemSelected(FSaI4_7 fSaI4_7, MenuItem menuItem) {
        return super.dispatchMenuItemSelected(fSaI4_7, menuItem) || this.mParentMenu.dispatchMenuItemSelected(fSaI4_7, menuItem);
    }

    @Override // X6FRs_4.KQgRr5e_0.YghfZG_14.XnFJ5_9.FSaI4_7
    public boolean expandItemActionView(XnFJ5_9 xnFJ5_9) {
        return this.mParentMenu.expandItemActionView(xnFJ5_9);
    }

    @Override // X6FRs_4.KQgRr5e_0.YghfZG_14.XnFJ5_9.FSaI4_7
    public String getActionViewStatesKey() {
        XnFJ5_9 xnFJ5_9 = this.mItem;
        int itemId = xnFJ5_9 != null ? xnFJ5_9.getItemId() : 0;
        if (itemId == 0) {
            return null;
        }
        return super.getActionViewStatesKey() + ":" + itemId;
    }

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

    public Menu getParentMenu() {
        return this.mParentMenu;
    }

    @Override // X6FRs_4.KQgRr5e_0.YghfZG_14.XnFJ5_9.FSaI4_7
    public FSaI4_7 getRootMenu() {
        return this.mParentMenu.getRootMenu();
    }

    @Override // X6FRs_4.KQgRr5e_0.YghfZG_14.XnFJ5_9.FSaI4_7
    public boolean isGroupDividerEnabled() {
        return this.mParentMenu.isGroupDividerEnabled();
    }

    @Override // X6FRs_4.KQgRr5e_0.YghfZG_14.XnFJ5_9.FSaI4_7
    public boolean isQwertyMode() {
        return this.mParentMenu.isQwertyMode();
    }

    @Override // X6FRs_4.KQgRr5e_0.YghfZG_14.XnFJ5_9.FSaI4_7
    public boolean isShortcutsVisible() {
        return this.mParentMenu.isShortcutsVisible();
    }

    @Override // X6FRs_4.KQgRr5e_0.YghfZG_14.XnFJ5_9.FSaI4_7
    public void setCallback(FSaI4_7.KQgRr5e_0 kQgRr5e_0) {
        this.mParentMenu.setCallback(kQgRr5e_0);
    }

    @Override // X6FRs_4.KQgRr5e_0.YghfZG_14.XnFJ5_9.FSaI4_7, android.view.Menu
    public void setGroupDividerEnabled(boolean z) {
        this.mParentMenu.setGroupDividerEnabled(z);
    }

    @Override // android.view.SubMenu
    public SubMenu setHeaderIcon(Drawable drawable) {
        return (SubMenu) super.setHeaderIconInt(drawable);
    }

    @Override // android.view.SubMenu
    public SubMenu setHeaderTitle(CharSequence charSequence) {
        return (SubMenu) super.setHeaderTitleInt(charSequence);
    }

    @Override // android.view.SubMenu
    public SubMenu setHeaderView(View view) {
        return (SubMenu) super.setHeaderViewInt(view);
    }

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

    @Override // X6FRs_4.KQgRr5e_0.YghfZG_14.XnFJ5_9.FSaI4_7, android.view.Menu
    public void setQwertyMode(boolean z) {
        this.mParentMenu.setQwertyMode(z);
    }

    @Override // X6FRs_4.KQgRr5e_0.YghfZG_14.XnFJ5_9.FSaI4_7
    public void setShortcutsVisible(boolean z) {
        this.mParentMenu.setShortcutsVisible(z);
    }

    @Override // android.view.SubMenu
    public SubMenu setHeaderIcon(int i) {
        return (SubMenu) super.setHeaderIconInt(i);
    }

    @Override // android.view.SubMenu
    public SubMenu setHeaderTitle(int i) {
        return (SubMenu) super.setHeaderTitleInt(i);
    }

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