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

28 lines
998 B
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.graphics.Typeface;
import java.lang.reflect.Array;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
/* loaded from: classes.dex */
public class Wgk extends C1060Usy {
@Override // o.C1060Usy
protected Typeface pa_(Object obj) {
try {
Object newInstance = Array.newInstance(this.d, 1);
Array.set(newInstance, 0, obj);
return (Typeface) this.b.invoke(null, newInstance, "sans-serif", -1, -1);
} catch (IllegalAccessException | InvocationTargetException e) {
throw new RuntimeException(e);
}
}
@Override // o.C1060Usy
protected Method a(Class<?> cls) throws NoSuchMethodException {
Method declaredMethod = Typeface.class.getDeclaredMethod("createFromFamiliesWithDefault", Array.newInstance(cls, 1).getClass(), String.class, Integer.TYPE, Integer.TYPE);
declaredMethod.setAccessible(true);
return declaredMethod;
}
}