package com.ss.android.ugc.aweme.services;

import X.0Gi;
import X.0Gp;
import X.C2698NOb;
import X.C2700NOd;
import X.C4087NrO;
import X.C4220NtX;
import X.NOX;
import X.NOZ;
import com.bytedance.covode.number.Covode;
import kotlin.h.b.n;

public final class DMTBottomTabIntegrationServiceImplDiff$tryShowPopupForLiveWhenFirstTime$1<TTaskResult, TContinuationResult> implements 0Gi {
    public final /* synthetic */ C4087NrO $diContainer;
    public final /* synthetic */ NOX $liveTabPopUpKeva;

    static {
        Covode.recordClassIndex(105041);
    }

    public DMTBottomTabIntegrationServiceImplDiff$tryShowPopupForLiveWhenFirstTime$1(NOX nox, C4087NrO nrO) {
        this.$liveTabPopUpKeva = nox;
        this.$diContainer = nrO;
    }

    public final void then(0Gp<NOZ> r4) {
        C2698NOb nOb;
        n.LIZIZ(r4, "");
        if (r4.LIZ()) {
            NOZ noz = (NOZ) r4.LIZLLL();
            if (noz == null || (nOb = noz.LIZ) == null || nOb.LIZ != 1) {
                this.$liveTabPopUpKeva.LIZ(false);
                C4220NtX.LJIILLIIL.LIZ(false);
                return;
            }
            C4220NtX.LJIILLIIL.LIZ(true);
            this.$liveTabPopUpKeva.LIZ(true);
            Object LIZ = this.$diContainer.LIZ(C2700NOd.class);
            ((C2700NOd) LIZ).tryShowPopupForLiveTab();
            n.LIZIZ(LIZ, "");
        }
    }
}
