package com.ss.android.ugc.aweme.im.sdk.common.controller.providedservices;

import X.070;
import X.C0179FVx;
import X.C0180FVy;
import X.C0848Frd;
import X.C0861Frq;
import X.Fh0;
import X.Lnj;
import android.app.Activity;
import android.os.Build;
import android.text.TextUtils;
import com.bytedance.covode.number.Covode;
import com.bytedance.frameworks.apm.trace.MethodCollector;
import com.ss.android.ugc.aweme.im.service.model.IMUser;

public class ImplService implements IImplService {
    static {
        Covode.recordClassIndex(86081);
    }

    public boolean enableExpressionTab() {
        return true;
    }

    public boolean isMtCase() {
        return true;
    }

    public boolean needAwemeMsgShowFollow() {
        return true;
    }

    public boolean needSessionListShowMore() {
        return false;
    }

    public boolean isUserVerified(IMUser iMUser) {
        if (!TextUtils.isEmpty(iMUser.getCustomVerify())) {
            return true;
        }
        return false;
    }

    public void setupStatusBar(Activity activity) {
        setStatusBarColor(activity, 070.LIZJ(activity, 2131100281));
        setLightStatusBar(activity);
    }

    public static void setLightStatusBar(Activity activity) {
        if (Build.VERSION.SDK_INT >= 23) {
            activity.getWindow().getDecorView().setSystemUiVisibility(activity.getWindow().getDecorView().getSystemUiVisibility() | 8192);
        }
    }

    public C0848Frd getRelationListAdapter(boolean z) {
        if (!C0861Frq.LIZIZ()) {
            return new Fh0();
        }
        if (z) {
            return new C0180FVy();
        }
        return new C0179FVx();
    }

    public static IImplService createIImplServicebyMonsterPlugin(boolean z) {
        MethodCollector.i(1651);
        IImplService iImplService = (IImplService) Lnj.LIZ(IImplService.class, z);
        if (iImplService != null) {
            MethodCollector.o(1651);
            return iImplService;
        }
        Object LIZIZ = Lnj.LIZIZ(IImplService.class, z);
        if (LIZIZ != null) {
            IImplService iImplService2 = (IImplService) LIZIZ;
            MethodCollector.o(1651);
            return iImplService2;
        }
        if (Lnj.LLLILZJ == null) {
            synchronized (IImplService.class) {
                try {
                    if (Lnj.LLLILZJ == null) {
                        Lnj.LLLILZJ = new ImplService();
                    }
                } catch (Throwable th) {
                    MethodCollector.o(1651);
                    throw th;
                }
            }
        }
        ImplService implService = (ImplService) Lnj.LLLILZJ;
        MethodCollector.o(1651);
        return implService;
    }

    public static void setStatusBarColor(Activity activity, int i) {
        activity.getWindow().setStatusBarColor(i);
    }
}
