43 lines
1.3 KiB
Java
43 lines
1.3 KiB
Java
|
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.McA, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class C0683McA {
|
||
|
TypedValue a;
|
||
|
final Context b;
|
||
|
public final TypedArray d;
|
||
|
|
||
|
public C0683McA(Context context, TypedArray typedArray) {
|
||
|
this.b = context;
|
||
|
this.d = typedArray;
|
||
|
}
|
||
|
|
||
|
public final Drawable jL_(int i) {
|
||
|
int resourceId;
|
||
|
if (this.d.hasValue(i) && (resourceId = this.d.getResourceId(i, 0)) != 0) {
|
||
|
return AgY.dT_(this.b, resourceId);
|
||
|
}
|
||
|
return this.d.getDrawable(i);
|
||
|
}
|
||
|
|
||
|
public final Drawable jM_(int i) {
|
||
|
int resourceId;
|
||
|
if (!this.d.hasValue(i) || (resourceId = this.d.getResourceId(i, 0)) == 0) {
|
||
|
return null;
|
||
|
}
|
||
|
return RXZ.c().fP_(this.b, resourceId, true);
|
||
|
}
|
||
|
|
||
|
public final ColorStateList jK_(int i) {
|
||
|
int resourceId;
|
||
|
ColorStateList dS_;
|
||
|
return (!this.d.hasValue(i) || (resourceId = this.d.getResourceId(i, 0)) == 0 || (dS_ = AgY.dS_(this.b, resourceId)) == null) ? this.d.getColorStateList(i) : dS_;
|
||
|
}
|
||
|
}
|