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

38 lines
1.7 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.util.TypedValue;
import org.xmlpull.v1.XmlPullParser;
/* renamed from: o.ael, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2447ael {
public static boolean ov_(TypedArray typedArray, XmlPullParser xmlPullParser, String str, int i, boolean z) {
return xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", str) != null ? typedArray.getBoolean(i, z) : z;
}
public static C2854amU ow_(TypedArray typedArray, XmlPullParser xmlPullParser, Resources.Theme theme, String str, int i) {
if (xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", str) != null) {
TypedValue typedValue = new TypedValue();
typedArray.getValue(i, typedValue);
if (typedValue.type >= 28 && typedValue.type <= 31) {
return C2854amU.d(typedValue.data);
}
C2854amU nI_ = C2854amU.nI_(typedArray.getResources(), typedArray.getResourceId(i, 0), theme);
if (nI_ != null) {
return nI_;
}
}
return C2854amU.d(0);
}
public static float ox_(TypedArray typedArray, XmlPullParser xmlPullParser, String str, int i, float f) {
return xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", str) != null ? typedArray.getFloat(i, f) : f;
}
public static int oy_(TypedArray typedArray, XmlPullParser xmlPullParser, String str, int i, int i2) {
return xmlPullParser.getAttributeValue("http://schemas.android.com/apk/res/android", str) != null ? typedArray.getInt(i, i2) : i2;
}
}