package ῲ.ῲ.ඓ.㳳;

import android.content.Context;
import android.content.Intent;
import android.content.res.ColorStateList;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.os.Build;
import android.view.ActionProvider;
import android.view.CollapsibleActionView;
import android.view.ContextMenu;
import android.view.MenuItem;
import android.view.SubMenu;
import android.view.View;
import android.widget.FrameLayout;
import java.lang.reflect.Method;
import ῲ.ᨨ.ᨨ.AbstractC1743;
import ῲ.ᨨ.㸾.K.AbstractMenuItemC1863;
import ῲ.ῲ.ඓ.AbstractC1887;

/* renamed from: ῲ.ῲ.ඓ.㳳.ᕣ  reason: contains not printable characters */
/* compiled from: MenuItemWrapperICS */
public class MenuItemC1904 extends AbstractC1896 implements MenuItem {

    /* renamed from: ඓ  reason: contains not printable characters */
    public Method f6452;

    /* renamed from: 㸾  reason: contains not printable characters */
    public final AbstractMenuItemC1863 f6453;

    /* renamed from: ῲ.ῲ.ඓ.㳳.ᕣ$ʬ  reason: contains not printable characters */
    /* compiled from: MenuItemWrapperICS */
    public static class C1905 extends FrameLayout implements AbstractC1887 {

        /* renamed from: ῲ  reason: contains not printable characters */
        public final CollapsibleActionView f6454;

        public C1905(View view) {
            super(view.getContext());
            this.f6454 = (CollapsibleActionView) view;
            addView(view);
        }

        @Override // ῲ.ῲ.ඓ.AbstractC1887
        /* renamed from: ῲ  reason: contains not printable characters */
        public void m4927() {
            this.f6454.onActionViewCollapsed();
        }

        @Override // ῲ.ῲ.ඓ.AbstractC1887
        /* renamed from: K  reason: contains not printable characters */
        public void m4928() {
            this.f6454.onActionViewExpanded();
        }
    }

    /* renamed from: ῲ.ῲ.ඓ.㳳.ᕣ$ඓ  reason: contains not printable characters */
    /* compiled from: MenuItemWrapperICS */
    public class MenuItem$OnMenuItemClickListenerC1906 implements MenuItem.OnMenuItemClickListener {

        /* renamed from: K  reason: contains not printable characters */
        public final MenuItem.OnMenuItemClickListener f6456;

        public MenuItem$OnMenuItemClickListenerC1906(MenuItem.OnMenuItemClickListener onMenuItemClickListener) {
            this.f6456 = onMenuItemClickListener;
        }

        public boolean onMenuItemClick(MenuItem menuItem) {
            return this.f6456.onMenuItemClick(MenuItemC1904.this.m4920(menuItem));
        }
    }

    /* renamed from: ῲ.ῲ.ඓ.㳳.ᕣ$ῲ  reason: contains not printable characters */
    /* compiled from: MenuItemWrapperICS */
    public class ActionProvider$VisibilityListenerC1907 extends C1908 implements ActionProvider.VisibilityListener {

        /* renamed from: ඓ  reason: contains not printable characters */
        public AbstractC1743.AbstractC1744 f6457;

        public ActionProvider$VisibilityListenerC1907(MenuItemC1904 r1, Context context, ActionProvider actionProvider) {
            super(context, actionProvider);
        }

        public void onActionProviderVisibilityChanged(boolean z) {
            AbstractC1743.AbstractC1744 r2 = this.f6457;
            if (r2 != null) {
                C1922 r22 = C1922.this;
                r22.f6515.onItemVisibleChanged(r22);
            }
        }

        @Override // ῲ.ᨨ.ᨨ.AbstractC1743
        /* renamed from: ῲ  reason: contains not printable characters */
        public boolean m4929() {
            return this.f6458.overridesItemVisibility();
        }

        @Override // ῲ.ᨨ.ᨨ.AbstractC1743
        /* renamed from: K  reason: contains not printable characters */
        public View m4930(MenuItem menuItem) {
            return this.f6458.onCreateActionView(menuItem);
        }

        @Override // ῲ.ᨨ.ᨨ.AbstractC1743
        /* renamed from: K  reason: contains not printable characters */
        public boolean m4932() {
            return this.f6458.isVisible();
        }

        @Override // ῲ.ᨨ.ᨨ.AbstractC1743
        /* renamed from: K  reason: contains not printable characters */
        public void m4931(AbstractC1743.AbstractC1744 r2) {
            this.f6457 = r2;
            this.f6458.setVisibilityListener(r2 != null ? this : null);
        }
    }

    /* renamed from: ῲ.ῲ.ඓ.㳳.ᕣ$K  reason: contains not printable characters */
    /* compiled from: MenuItemWrapperICS */
    public class C1908 extends AbstractC1743 {

        /* renamed from: ʬ  reason: contains not printable characters */
        public final ActionProvider f6458;

        public C1908(Context context, ActionProvider actionProvider) {
            super(context);
            this.f6458 = actionProvider;
        }
    }

    /* renamed from: ῲ.ῲ.ඓ.㳳.ᕣ$㸾  reason: contains not printable characters */
    /* compiled from: MenuItemWrapperICS */
    public class MenuItem$OnActionExpandListenerC1909 implements MenuItem.OnActionExpandListener {

        /* renamed from: K  reason: contains not printable characters */
        public final MenuItem.OnActionExpandListener f6461;

        public MenuItem$OnActionExpandListenerC1909(MenuItem.OnActionExpandListener onActionExpandListener) {
            this.f6461 = onActionExpandListener;
        }

        public boolean onMenuItemActionCollapse(MenuItem menuItem) {
            return this.f6461.onMenuItemActionCollapse(MenuItemC1904.this.m4920(menuItem));
        }

        public boolean onMenuItemActionExpand(MenuItem menuItem) {
            return this.f6461.onMenuItemActionExpand(MenuItemC1904.this.m4920(menuItem));
        }
    }

    public MenuItemC1904(Context context, AbstractMenuItemC1863 r2) {
        super(context);
        if (r2 != null) {
            this.f6453 = r2;
            return;
        }
        throw new IllegalArgumentException("Wrapped Object can not be null.");
    }

    public boolean collapseActionView() {
        return this.f6453.collapseActionView();
    }

    public boolean expandActionView() {
        return this.f6453.expandActionView();
    }

    public ActionProvider getActionProvider() {
        AbstractC1743 r0 = this.f6453.m4824();
        if (r0 instanceof C1908) {
            return ((C1908) r0).f6458;
        }
        return null;
    }

    public View getActionView() {
        View actionView = this.f6453.getActionView();
        return actionView instanceof C1905 ? (View) ((C1905) actionView).f6454 : actionView;
    }

    public int getAlphabeticModifiers() {
        return this.f6453.getAlphabeticModifiers();
    }

    public char getAlphabeticShortcut() {
        return this.f6453.getAlphabeticShortcut();
    }

    public CharSequence getContentDescription() {
        return this.f6453.getContentDescription();
    }

    public int getGroupId() {
        return this.f6453.getGroupId();
    }

    public Drawable getIcon() {
        return this.f6453.getIcon();
    }

    public ColorStateList getIconTintList() {
        return this.f6453.getIconTintList();
    }

    public PorterDuff.Mode getIconTintMode() {
        return this.f6453.getIconTintMode();
    }

    public Intent getIntent() {
        return this.f6453.getIntent();
    }

    public int getItemId() {
        return this.f6453.getItemId();
    }

    public ContextMenu.ContextMenuInfo getMenuInfo() {
        return this.f6453.getMenuInfo();
    }

    public int getNumericModifiers() {
        return this.f6453.getNumericModifiers();
    }

    public char getNumericShortcut() {
        return this.f6453.getNumericShortcut();
    }

    public int getOrder() {
        return this.f6453.getOrder();
    }

    public SubMenu getSubMenu() {
        return m4921(this.f6453.getSubMenu());
    }

    public CharSequence getTitle() {
        return this.f6453.getTitle();
    }

    public CharSequence getTitleCondensed() {
        return this.f6453.getTitleCondensed();
    }

    public CharSequence getTooltipText() {
        return this.f6453.getTooltipText();
    }

    public boolean hasSubMenu() {
        return this.f6453.hasSubMenu();
    }

    public boolean isActionViewExpanded() {
        return this.f6453.isActionViewExpanded();
    }

    public boolean isCheckable() {
        return this.f6453.isCheckable();
    }

    public boolean isChecked() {
        return this.f6453.isChecked();
    }

    public boolean isEnabled() {
        return this.f6453.isEnabled();
    }

    public boolean isVisible() {
        return this.f6453.isVisible();
    }

    public MenuItem setActionProvider(ActionProvider actionProvider) {
        int i = Build.VERSION.SDK_INT;
        ActionProvider$VisibilityListenerC1907 r0 = new ActionProvider$VisibilityListenerC1907(this, this.f6438, actionProvider);
        AbstractMenuItemC1863 r1 = this.f6453;
        if (actionProvider == null) {
            r0 = null;
        }
        r1.m4825(r0);
        return this;
    }

    @Override // android.view.MenuItem
    public MenuItem setActionView(View view) {
        if (view instanceof CollapsibleActionView) {
            view = new C1905(view);
        }
        this.f6453.setActionView(view);
        return this;
    }

    public MenuItem setAlphabeticShortcut(char c) {
        this.f6453.setAlphabeticShortcut(c);
        return this;
    }

    public MenuItem setCheckable(boolean z) {
        this.f6453.setCheckable(z);
        return this;
    }

    public MenuItem setChecked(boolean z) {
        this.f6453.setChecked(z);
        return this;
    }

    public MenuItem setContentDescription(CharSequence charSequence) {
        this.f6453.setContentDescription(charSequence);
        return this;
    }

    public MenuItem setEnabled(boolean z) {
        this.f6453.setEnabled(z);
        return this;
    }

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

    public MenuItem setIconTintList(ColorStateList colorStateList) {
        this.f6453.setIconTintList(colorStateList);
        return this;
    }

    public MenuItem setIconTintMode(PorterDuff.Mode mode) {
        this.f6453.setIconTintMode(mode);
        return this;
    }

    public MenuItem setIntent(Intent intent) {
        this.f6453.setIntent(intent);
        return this;
    }

    public MenuItem setNumericShortcut(char c) {
        this.f6453.setNumericShortcut(c);
        return this;
    }

    public MenuItem setOnActionExpandListener(MenuItem.OnActionExpandListener onActionExpandListener) {
        this.f6453.setOnActionExpandListener(onActionExpandListener != null ? new MenuItem$OnActionExpandListenerC1909(onActionExpandListener) : null);
        return this;
    }

    public MenuItem setOnMenuItemClickListener(MenuItem.OnMenuItemClickListener onMenuItemClickListener) {
        this.f6453.setOnMenuItemClickListener(onMenuItemClickListener != null ? new MenuItem$OnMenuItemClickListenerC1906(onMenuItemClickListener) : null);
        return this;
    }

    public MenuItem setShortcut(char c, char c2) {
        this.f6453.setShortcut(c, c2);
        return this;
    }

    public void setShowAsAction(int i) {
        this.f6453.setShowAsAction(i);
    }

    public MenuItem setShowAsActionFlags(int i) {
        this.f6453.setShowAsActionFlags(i);
        return this;
    }

    @Override // android.view.MenuItem
    public MenuItem setTitle(CharSequence charSequence) {
        this.f6453.setTitle(charSequence);
        return this;
    }

    public MenuItem setTitleCondensed(CharSequence charSequence) {
        this.f6453.setTitleCondensed(charSequence);
        return this;
    }

    public MenuItem setTooltipText(CharSequence charSequence) {
        this.f6453.setTooltipText(charSequence);
        return this;
    }

    public MenuItem setVisible(boolean z) {
        return this.f6453.setVisible(z);
    }

    public MenuItem setAlphabeticShortcut(char c, int i) {
        this.f6453.setAlphabeticShortcut(c, i);
        return this;
    }

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

    public MenuItem setNumericShortcut(char c, int i) {
        this.f6453.setNumericShortcut(c, i);
        return this;
    }

    public MenuItem setShortcut(char c, char c2, int i, int i2) {
        this.f6453.setShortcut(c, c2, i, i2);
        return this;
    }

    @Override // android.view.MenuItem
    public MenuItem setTitle(int i) {
        this.f6453.setTitle(i);
        return this;
    }

    @Override // android.view.MenuItem
    public MenuItem setActionView(int i) {
        this.f6453.setActionView(i);
        View actionView = this.f6453.getActionView();
        if (actionView instanceof CollapsibleActionView) {
            this.f6453.setActionView(new C1905(actionView));
        }
        return this;
    }
}
