package com.ss.android.ugc.aweme.discover.impl;

import X.C4674Eko;
import X.F5K;
import X.Lnj;
import androidx.fragment.app.Fragment;
import com.bytedance.covode.number.Covode;
import com.bytedance.frameworks.apm.trace.MethodCollector;
import com.ss.android.ugc.aweme.discover.IDiscoveryService;
import com.ss.android.ugc.aweme.discover.ui.DiscoverAndSearchFragment;

public final class DiscoveryServiceImpl implements IDiscoveryService {
    static {
        Covode.recordClassIndex(64712);
    }

    public final Class<? extends Fragment> LIZIZ() {
        return DiscoverAndSearchFragment.class;
    }

    public final C4674Eko LIZJ() {
        return F5K.LIZIZ;
    }

    public final Fragment LIZ() {
        return new DiscoverAndSearchFragment();
    }

    public static IDiscoveryService LIZLLL() {
        MethodCollector.i(16281);
        IDiscoveryService iDiscoveryService = (IDiscoveryService) Lnj.LIZ(IDiscoveryService.class, false);
        if (iDiscoveryService != null) {
            MethodCollector.o(16281);
            return iDiscoveryService;
        }
        Object LIZIZ = Lnj.LIZIZ(IDiscoveryService.class, false);
        if (LIZIZ != null) {
            IDiscoveryService iDiscoveryService2 = (IDiscoveryService) LIZIZ;
            MethodCollector.o(16281);
            return iDiscoveryService2;
        }
        if (Lnj.LLJ == null) {
            synchronized (IDiscoveryService.class) {
                try {
                    if (Lnj.LLJ == null) {
                        Lnj.LLJ = new DiscoveryServiceImpl();
                    }
                } catch (Throwable th) {
                    MethodCollector.o(16281);
                    throw th;
                }
            }
        }
        DiscoveryServiceImpl discoveryServiceImpl = (DiscoveryServiceImpl) Lnj.LLJ;
        MethodCollector.o(16281);
        return discoveryServiceImpl;
    }
}
