package androidx.emoji2.text;

import android.content.Context;
import androidx.lifecycle.ProcessLifecycleInitializer;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import o.AA;
import o.C0507To;
import o.C2004nv;
import o.C2099ov;
import o.C3126zm0;
import o.InterfaceC0898cL;
import o.InterfaceC1848mH;
import o.WK;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public class EmojiCompatInitializer implements InterfaceC1848mH {
    @Override // o.InterfaceC1848mH
    public final List a() {
        return Collections.singletonList(ProcessLifecycleInitializer.class);
    }

    @Override // o.InterfaceC1848mH
    public final Object b(Context context) {
        Object objU;
        AA aa = new AA(new C0507To(context, 1));
        aa.a = 1;
        if (C2004nv.k == null) {
            synchronized (C2004nv.j) {
                try {
                    if (C2004nv.k == null) {
                        C2004nv.k = new C2004nv(aa);
                    }
                } finally {
                }
            }
        }
        C3126zm0 c3126zm0B = C3126zm0.B(context);
        c3126zm0B.getClass();
        synchronized (C3126zm0.q) {
            try {
                objU = ((HashMap) c3126zm0B.m).get(ProcessLifecycleInitializer.class);
                if (objU == null) {
                    objU = c3126zm0B.u(ProcessLifecycleInitializer.class, new HashSet());
                }
            } finally {
            }
        }
        WK lifecycle = ((InterfaceC0898cL) objU).getLifecycle();
        lifecycle.a(new C2099ov(this, lifecycle));
        return Boolean.TRUE;
    }
}
