package ir.devixor.app;

import android.app.Application;
import android.content.SharedPreferences;
import o.C0076Cy;
import o.C0102Dy;
import o.C0454Rn;
import o.C0637Yo;
import o.C2522tR;
import o.Qc0;
import o.RY;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class MyApp extends Application {
    public static final /* synthetic */ int l = 0;

    @Override // android.app.Application
    public final void onCreate() {
        super.onCreate();
        C0076Cy.g(this);
        C0102Dy c0102Dy = (C0102Dy) C0076Cy.c().b(C0102Dy.class);
        if (c0102Dy == null) {
            throw new NullPointerException("FirebaseCrashlytics component is not present.");
        }
        C0454Rn c0454Rn = c0102Dy.a;
        Boolean bool = Boolean.TRUE;
        C0637Yo c0637Yo = c0454Rn.b;
        synchronized (c0637Yo) {
            c0637Yo.f = bool;
            SharedPreferences.Editor editorEdit = c0637Yo.a.edit();
            editorEdit.putBoolean("firebase_crashlytics_collection_enabled", true);
            editorEdit.apply();
            synchronized (c0637Yo.c) {
                try {
                    if (c0637Yo.a()) {
                        if (!c0637Yo.e) {
                            c0637Yo.d.d(null);
                            c0637Yo.e = true;
                        }
                    } else if (c0637Yo.e) {
                        c0637Yo.d = new Qc0();
                        c0637Yo.e = false;
                    }
                } finally {
                }
            }
        }
        RY.t.q.a(new C2522tR(0, this));
    }
}
