package o; import android.content.Context; import android.util.TypedValue; import android.view.View; /* renamed from: o.kYS, reason: case insensitive filesystem */ /* loaded from: classes2.dex */ public final class C16021kYS { public static int d(View view, int i) { Context context = view.getContext(); TypedValue Kt_ = TZc.Kt_(view.getContext(), i, view.getClass().getCanonicalName()); if (Kt_.resourceId != 0) { return nMh.getColor(context, Kt_.resourceId); } return Kt_.data; } public static int d(Context context, int i, int i2) { TypedValue typedValue = new TypedValue(); if (!context.getTheme().resolveAttribute(i, typedValue, true)) { typedValue = null; } if (typedValue == null) { return i2; } if (typedValue.resourceId != 0) { return nMh.getColor(context, typedValue.resourceId); } return typedValue.data; } }