package p037.p099;

import android.app.Application;
import java.lang.reflect.InvocationTargetException;
import p138.p139.p143.p144.C2803;

/* JADX INFO: renamed from: މ.ދ.ޞ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C2246 extends C2249 {

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static C2246 f7208;

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public Application f7209;

    public C2246(Application application) {
        this.f7209 = application;
    }

    @Override // p037.p099.C2249, p037.p099.InterfaceC2247
    /* JADX INFO: renamed from: ֏ */
    public <T extends AbstractC2245> T mo1666(Class<T> cls) {
        if (!C2200.class.isAssignableFrom(cls)) {
            return (T) super.mo1666(cls);
        }
        try {
            return cls.getConstructor(Application.class).newInstance(this.f7209);
        } catch (IllegalAccessException e) {
            throw new RuntimeException(C2803.m4878("Cannot create an instance of ", cls), e);
        } catch (InstantiationException e2) {
            throw new RuntimeException(C2803.m4878("Cannot create an instance of ", cls), e2);
        } catch (NoSuchMethodException e3) {
            throw new RuntimeException(C2803.m4878("Cannot create an instance of ", cls), e3);
        } catch (InvocationTargetException e4) {
            throw new RuntimeException(C2803.m4878("Cannot create an instance of ", cls), e4);
        }
    }
}
