what-the-bank/sources/o/C14739fyr.java

41 lines
1.8 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.Context;
import android.content.res.ColorStateList;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.util.TypedValue;
/* renamed from: o.fyr, reason: case insensitive filesystem */
/* loaded from: classes2.dex */
public final class C14739fyr {
public static ColorStateList Ku_(Context context, TypedArray typedArray, int i) {
int resourceId;
ColorStateList dS_;
return (!typedArray.hasValue(i) || (resourceId = typedArray.getResourceId(i, 0)) == 0 || (dS_ = AgY.dS_(context, resourceId)) == null) ? typedArray.getColorStateList(i) : dS_;
}
public static ColorStateList Kv_(Context context, C0683McA c0683McA, int i) {
int resourceId;
ColorStateList dS_;
return (!c0683McA.d.hasValue(i) || (resourceId = c0683McA.d.getResourceId(i, 0)) == 0 || (dS_ = AgY.dS_(context, resourceId)) == null) ? c0683McA.jK_(i) : dS_;
}
public static Drawable Kx_(Context context, TypedArray typedArray, int i) {
int resourceId;
Drawable dT_;
return (!typedArray.hasValue(i) || (resourceId = typedArray.getResourceId(i, 0)) == 0 || (dT_ = AgY.dT_(context, resourceId)) == null) ? typedArray.getDrawable(i) : dT_;
}
public static int Kw_(Context context, TypedArray typedArray, int i) {
TypedValue typedValue = new TypedValue();
if (!typedArray.getValue(i, typedValue) || typedValue.type != 2) {
return typedArray.getDimensionPixelSize(i, -1);
}
TypedArray obtainStyledAttributes = context.getTheme().obtainStyledAttributes(new int[]{typedValue.data});
int dimensionPixelSize = obtainStyledAttributes.getDimensionPixelSize(0, -1);
obtainStyledAttributes.recycle();
return dimensionPixelSize;
}
}