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.ContextMenu;
import android.view.KeyEvent;
import android.view.MenuItem;
import android.view.SubMenu;
import android.view.View;
import androidx.recyclerview.widget.RecyclerView;
import ῲ.ᨨ.ᨨ.AbstractC1743;
import ῲ.ᨨ.ῲ.C1806;
import ῲ.ᨨ.㸾.K.AbstractMenuItemC1863;
import K.K.K.ʬ.C2369;

/* renamed from: ῲ.ῲ.ඓ.㳳.K  reason: contains not printable characters */
/* compiled from: ActionMenuItem */
public class C1915 implements AbstractMenuItemC1863 {

    /* renamed from: ʬ  reason: contains not printable characters */
    public final int f6471;

    /* renamed from: Ԕ  reason: contains not printable characters */
    public CharSequence f6472;

    /* renamed from: ؿ  reason: contains not printable characters */
    public PorterDuff.Mode f6473 = null;

    /* renamed from: ݜ  reason: contains not printable characters */
    public int f6474 = 16;

    /* renamed from: ඓ  reason: contains not printable characters */
    public CharSequence f6475;

    /* renamed from: ᓣ  reason: contains not printable characters */
    public boolean f6476 = false;

    /* renamed from: ᕣ  reason: contains not printable characters */
    public Drawable f6477;

    /* renamed from: ᨨ  reason: contains not printable characters */
    public char f6478;

    /* renamed from: ῲ  reason: contains not printable characters */
    public final int f6479;

    /* renamed from: ⁱ  reason: contains not printable characters */
    public char f6480;

    /* renamed from: K  reason: contains not printable characters */
    public final int f6481;

    /* renamed from: 㑃  reason: contains not printable characters */
    public Context f6482;

    /* renamed from: 㗗  reason: contains not printable characters */
    public ColorStateList f6483 = null;

    /* renamed from: 㗽  reason: contains not printable characters */
    public boolean f6484 = false;

    /* renamed from: 㳳  reason: contains not printable characters */
    public int f6485 = RecyclerView.AbstractC0269.FLAG_APPEARED_IN_PRE_LAYOUT;

    /* renamed from: 㴹  reason: contains not printable characters */
    public Intent f6486;

    /* renamed from: 㸾  reason: contains not printable characters */
    public CharSequence f6487;

    /* renamed from: 㿎  reason: contains not printable characters */
    public int f6488 = RecyclerView.AbstractC0269.FLAG_APPEARED_IN_PRE_LAYOUT;

    /* renamed from: 䁗  reason: contains not printable characters */
    public CharSequence f6489;

    public C1915(Context context, int i, int i2, int i3, CharSequence charSequence) {
        this.f6482 = context;
        this.f6481 = i2;
        this.f6479 = i;
        this.f6471 = i3;
        this.f6487 = charSequence;
    }

    @Override // ῲ.ᨨ.㸾.K.AbstractMenuItemC1863
    public boolean collapseActionView() {
        return false;
    }

    @Override // ῲ.ᨨ.㸾.K.AbstractMenuItemC1863
    public boolean expandActionView() {
        return false;
    }

    public ActionProvider getActionProvider() {
        throw new UnsupportedOperationException();
    }

    @Override // ῲ.ᨨ.㸾.K.AbstractMenuItemC1863
    public View getActionView() {
        return null;
    }

    @Override // ῲ.ᨨ.㸾.K.AbstractMenuItemC1863
    public int getAlphabeticModifiers() {
        return this.f6485;
    }

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

    @Override // ῲ.ᨨ.㸾.K.AbstractMenuItemC1863
    public CharSequence getContentDescription() {
        return this.f6489;
    }

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

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

    @Override // ῲ.ᨨ.㸾.K.AbstractMenuItemC1863
    public ColorStateList getIconTintList() {
        return this.f6483;
    }

    @Override // ῲ.ᨨ.㸾.K.AbstractMenuItemC1863
    public PorterDuff.Mode getIconTintMode() {
        return this.f6473;
    }

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

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

    public ContextMenu.ContextMenuInfo getMenuInfo() {
        return null;
    }

    @Override // ῲ.ᨨ.㸾.K.AbstractMenuItemC1863
    public int getNumericModifiers() {
        return this.f6488;
    }

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

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

    public SubMenu getSubMenu() {
        return null;
    }

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

    public CharSequence getTitleCondensed() {
        CharSequence charSequence = this.f6475;
        return charSequence != null ? charSequence : this.f6487;
    }

    @Override // ῲ.ᨨ.㸾.K.AbstractMenuItemC1863
    public CharSequence getTooltipText() {
        return this.f6472;
    }

    public boolean hasSubMenu() {
        return false;
    }

    @Override // ῲ.ᨨ.㸾.K.AbstractMenuItemC1863
    public boolean isActionViewExpanded() {
        return false;
    }

    public boolean isCheckable() {
        return (this.f6474 & 1) != 0;
    }

    public boolean isChecked() {
        return (this.f6474 & 2) != 0;
    }

    public boolean isEnabled() {
        return (this.f6474 & 16) != 0;
    }

    public boolean isVisible() {
        return (this.f6474 & 8) == 0;
    }

    public MenuItem setActionProvider(ActionProvider actionProvider) {
        throw new UnsupportedOperationException();
    }

    @Override // ῲ.ᨨ.㸾.K.AbstractMenuItemC1863, android.view.MenuItem
    public MenuItem setActionView(View view) {
        throw new UnsupportedOperationException();
    }

    public MenuItem setAlphabeticShortcut(char c) {
        this.f6478 = Character.toLowerCase(c);
        return this;
    }

    public MenuItem setCheckable(boolean z) {
        this.f6474 = (z ? 1 : 0) | (this.f6474 & -2);
        return this;
    }

    public MenuItem setChecked(boolean z) {
        this.f6474 = (z ? 2 : 0) | (this.f6474 & -3);
        return this;
    }

    @Override // ῲ.ᨨ.㸾.K.AbstractMenuItemC1863
    public MenuItem setContentDescription(CharSequence charSequence) {
        this.f6489 = charSequence;
        return this;
    }

    public MenuItem setEnabled(boolean z) {
        this.f6474 = (z ? 16 : 0) | (this.f6474 & -17);
        return this;
    }

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

    @Override // ῲ.ᨨ.㸾.K.AbstractMenuItemC1863
    public MenuItem setIconTintList(ColorStateList colorStateList) {
        this.f6483 = colorStateList;
        this.f6476 = true;
        m4936();
        return this;
    }

    @Override // ῲ.ᨨ.㸾.K.AbstractMenuItemC1863
    public MenuItem setIconTintMode(PorterDuff.Mode mode) {
        this.f6473 = mode;
        this.f6484 = true;
        m4936();
        return this;
    }

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

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

    public MenuItem setOnActionExpandListener(MenuItem.OnActionExpandListener onActionExpandListener) {
        throw new UnsupportedOperationException();
    }

    public MenuItem setOnMenuItemClickListener(MenuItem.OnMenuItemClickListener onMenuItemClickListener) {
        return this;
    }

    public MenuItem setShortcut(char c, char c2) {
        this.f6480 = c;
        this.f6478 = Character.toLowerCase(c2);
        return this;
    }

    @Override // ῲ.ᨨ.㸾.K.AbstractMenuItemC1863
    public void setShowAsAction(int i) {
    }

    @Override // ῲ.ᨨ.㸾.K.AbstractMenuItemC1863
    public MenuItem setShowAsActionFlags(int i) {
        return this;
    }

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

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

    @Override // ῲ.ᨨ.㸾.K.AbstractMenuItemC1863
    public MenuItem setTooltipText(CharSequence charSequence) {
        this.f6472 = charSequence;
        return this;
    }

    public MenuItem setVisible(boolean z) {
        int i = 8;
        int i2 = this.f6474 & 8;
        if (z) {
            i = 0;
        }
        this.f6474 = i2 | i;
        return this;
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public final void m4936() {
        if (this.f6477 == null) {
            return;
        }
        if (this.f6476 || this.f6484) {
            this.f6477 = C2369.m6273(this.f6477);
            this.f6477 = this.f6477.mutate();
            if (this.f6476) {
                Drawable drawable = this.f6477;
                ColorStateList colorStateList = this.f6483;
                int i = Build.VERSION.SDK_INT;
                drawable.setTintList(colorStateList);
            }
            if (this.f6484) {
                Drawable drawable2 = this.f6477;
                PorterDuff.Mode mode = this.f6473;
                int i2 = Build.VERSION.SDK_INT;
                drawable2.setTintMode(mode);
            }
        }
    }

    @Override // ῲ.ᨨ.㸾.K.AbstractMenuItemC1863
    /* renamed from: K  reason: contains not printable characters */
    public AbstractC1743 m4937() {
        return null;
    }

    @Override // ῲ.ᨨ.㸾.K.AbstractMenuItemC1863
    /* renamed from: K  reason: contains not printable characters */
    public AbstractMenuItemC1863 m4938(AbstractC1743 r1) {
        throw new UnsupportedOperationException();
    }

    @Override // ῲ.ᨨ.㸾.K.AbstractMenuItemC1863, android.view.MenuItem
    public MenuItem setActionView(int i) {
        throw new UnsupportedOperationException();
    }

    @Override // ῲ.ᨨ.㸾.K.AbstractMenuItemC1863
    public MenuItem setAlphabeticShortcut(char c, int i) {
        this.f6478 = Character.toLowerCase(c);
        this.f6485 = KeyEvent.normalizeMetaState(i);
        return this;
    }

    @Override // ῲ.ᨨ.㸾.K.AbstractMenuItemC1863
    /* renamed from: setContentDescription  reason: collision with other method in class */
    public AbstractMenuItemC1863 m4939setContentDescription(CharSequence charSequence) {
        this.f6489 = charSequence;
        return this;
    }

    @Override // ῲ.ᨨ.㸾.K.AbstractMenuItemC1863
    public MenuItem setNumericShortcut(char c, int i) {
        this.f6480 = c;
        this.f6488 = KeyEvent.normalizeMetaState(i);
        return this;
    }

    @Override // android.view.MenuItem
    public MenuItem setTitle(int i) {
        this.f6487 = this.f6482.getResources().getString(i);
        return this;
    }

    @Override // ῲ.ᨨ.㸾.K.AbstractMenuItemC1863
    /* renamed from: setTooltipText  reason: collision with other method in class */
    public AbstractMenuItemC1863 m4940setTooltipText(CharSequence charSequence) {
        this.f6472 = charSequence;
        return this;
    }

    @Override // android.view.MenuItem
    public MenuItem setIcon(int i) {
        this.f6477 = C1806.m4683(this.f6482, i);
        m4936();
        return this;
    }

    @Override // ῲ.ᨨ.㸾.K.AbstractMenuItemC1863
    public MenuItem setShortcut(char c, char c2, int i, int i2) {
        this.f6480 = c;
        this.f6488 = KeyEvent.normalizeMetaState(i);
        this.f6478 = Character.toLowerCase(c2);
        this.f6485 = KeyEvent.normalizeMetaState(i2);
        return this;
    }
}
