package X6FRs_4.IMuAHx_6.EuDEkJe_12;

import android.content.res.ColorStateList;
import android.graphics.PorterDuff;
import android.os.Build;
import android.util.Log;
import android.view.MenuItem;
/* compiled from: MenuItemCompat.java */
/* loaded from: classes.dex */
public final class IMuAHx_6 {
    public static MenuItem KQgRr5e_0(MenuItem menuItem, QxJ9d_1 qxJ9d_1) {
        if (menuItem instanceof X6FRs_4.IMuAHx_6.IMuAHx_6.KQgRr5e_0.QxJ9d_1) {
            return ((X6FRs_4.IMuAHx_6.IMuAHx_6.KQgRr5e_0.QxJ9d_1) menuItem).KQgRr5e_0(qxJ9d_1);
        }
        Log.w("MenuItemCompat", "setActionProvider: item does not implement SupportMenuItem; ignoring");
        return menuItem;
    }

    public static void QxJ9d_1(MenuItem menuItem, CharSequence charSequence) {
        if (menuItem instanceof X6FRs_4.IMuAHx_6.IMuAHx_6.KQgRr5e_0.QxJ9d_1) {
            ((X6FRs_4.IMuAHx_6.IMuAHx_6.KQgRr5e_0.QxJ9d_1) menuItem).KQgRr5e_0(charSequence);
        } else if (Build.VERSION.SDK_INT >= 26) {
            menuItem.setTooltipText(charSequence);
        }
    }

    public static void KQgRr5e_0(MenuItem menuItem, CharSequence charSequence) {
        if (menuItem instanceof X6FRs_4.IMuAHx_6.IMuAHx_6.KQgRr5e_0.QxJ9d_1) {
            ((X6FRs_4.IMuAHx_6.IMuAHx_6.KQgRr5e_0.QxJ9d_1) menuItem).QxJ9d_1(charSequence);
        } else if (Build.VERSION.SDK_INT >= 26) {
            menuItem.setContentDescription(charSequence);
        }
    }

    public static void QxJ9d_1(MenuItem menuItem, char c, int i) {
        if (menuItem instanceof X6FRs_4.IMuAHx_6.IMuAHx_6.KQgRr5e_0.QxJ9d_1) {
            ((X6FRs_4.IMuAHx_6.IMuAHx_6.KQgRr5e_0.QxJ9d_1) menuItem).setNumericShortcut(c, i);
        } else if (Build.VERSION.SDK_INT >= 26) {
            menuItem.setNumericShortcut(c, i);
        }
    }

    public static void KQgRr5e_0(MenuItem menuItem, char c, int i) {
        if (menuItem instanceof X6FRs_4.IMuAHx_6.IMuAHx_6.KQgRr5e_0.QxJ9d_1) {
            ((X6FRs_4.IMuAHx_6.IMuAHx_6.KQgRr5e_0.QxJ9d_1) menuItem).setAlphabeticShortcut(c, i);
        } else if (Build.VERSION.SDK_INT >= 26) {
            menuItem.setAlphabeticShortcut(c, i);
        }
    }

    public static void KQgRr5e_0(MenuItem menuItem, ColorStateList colorStateList) {
        if (menuItem instanceof X6FRs_4.IMuAHx_6.IMuAHx_6.KQgRr5e_0.QxJ9d_1) {
            ((X6FRs_4.IMuAHx_6.IMuAHx_6.KQgRr5e_0.QxJ9d_1) menuItem).setIconTintList(colorStateList);
        } else if (Build.VERSION.SDK_INT >= 26) {
            menuItem.setIconTintList(colorStateList);
        }
    }

    public static void KQgRr5e_0(MenuItem menuItem, PorterDuff.Mode mode) {
        if (menuItem instanceof X6FRs_4.IMuAHx_6.IMuAHx_6.KQgRr5e_0.QxJ9d_1) {
            ((X6FRs_4.IMuAHx_6.IMuAHx_6.KQgRr5e_0.QxJ9d_1) menuItem).setIconTintMode(mode);
        } else if (Build.VERSION.SDK_INT >= 26) {
            menuItem.setIconTintMode(mode);
        }
    }
}
