Initial commit

This commit is contained in:
2025-05-13 19:24:51 +02:00
commit a950f49678
10604 changed files with 932663 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
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;
}
}