package com.google.android.material.resources; import android.content.Context; import android.content.res.ColorStateList; import android.content.res.TypedArray; import android.graphics.drawable.Drawable; import androidx.appcompat.content.res.AppCompatResources; /* loaded from: classes.dex */ public class MaterialResources { public static ColorStateList a(Context context, TypedArray typedArray, int i) { int resourceId; ColorStateList b; return (!typedArray.hasValue(i) || (resourceId = typedArray.getResourceId(i, 0)) == 0 || (b = AppCompatResources.b(context, resourceId)) == null) ? typedArray.getColorStateList(i) : b; } public static Drawable b(Context context, TypedArray typedArray, int i) { int resourceId; Drawable c; return (!typedArray.hasValue(i) || (resourceId = typedArray.getResourceId(i, 0)) == 0 || (c = AppCompatResources.c(context, resourceId)) == null) ? typedArray.getDrawable(i) : c; } }