package com.ss.android.ugc.aweme.relation.ffp.ui.cell;

import X.070;
import X.08L;
import X.2xd;
import X.2xi;
import X.3ae;
import X.4ZZ;
import X.7xU;
import X.C1944AkO;
import X.C1953AkX;
import X.LnI;
import X.M12;
import android.content.Context;
import android.content.res.Resources;
import android.util.TypedValue;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
import com.bytedance.covode.number.Covode;
import com.bytedance.router.SmartRoute;
import com.bytedance.router.SmartRouter;
import kotlin.h.b.n;

public final class RecFriendsInviteCell extends RecFriendsTopBaseCell<C1944AkO> {
    static {
        Covode.recordClassIndex(103035);
    }

    public final /* synthetic */ void LIZIZ(C1953AkX akX) {
        C1944AkO akO = (C1944AkO) akX;
        M12.LIZ(akO);
        View view = this.itemView;
        n.LIZIZ(view, "");
        SmartRoute buildRoute = SmartRouter.buildRoute(view.getContext(), "//friends/invite");
        buildRoute.withParam("enter_from", akO.LIZ.LIZ);
        buildRoute.open();
    }

    /* JADX WARNING: type inference failed for: r0v22, types: [android.view.View, X.CbG] */
    /* access modifiers changed from: private */
    public void LIZ(C1944AkO akO) {
        M12.LIZ(akO);
        super.LIZ(akO);
        View view = this.itemView;
        n.LIZIZ(view, "");
        Context context = view.getContext();
        4ZZ LIZ = LIZ();
        LIZ.setTuxIcon(2xd.LIZ(2xi.LIZ));
        ViewGroup.LayoutParams layoutParams = LIZ.getLayoutParams();
        if (layoutParams != null) {
            Resources system = Resources.getSystem();
            n.LIZIZ(system, "");
            layoutParams.height = LnI.LIZ(TypedValue.applyDimension(1, 36.0f, system.getDisplayMetrics()));
            Resources system2 = Resources.getSystem();
            n.LIZIZ(system2, "");
            layoutParams.width = LnI.LIZ(TypedValue.applyDimension(1, 36.0f, system2.getDisplayMetrics()));
            LIZ.setLayoutParams(layoutParams);
            3ae r1 = new 3ae();
            r1.LIZ = Integer.valueOf(070.LIZJ(context, 2131100068));
            Resources system3 = Resources.getSystem();
            n.LIZIZ(system3, "");
            r1.LIZJ = Float.valueOf(TypedValue.applyDimension(1, 36.0f, system3.getDisplayMetrics()));
            n.LIZIZ(context, "");
            LIZ.setBackground(r1.LIZ(context));
            LIZIZ().setText(context.getText(2131825120));
            LIZJ().setVisibility(8);
            LIZLLL().setVisibility(8);
            ViewParent parent = LIZLLL().getParent();
            if (!(parent instanceof View)) {
                parent = null;
            }
            View view2 = (View) parent;
            if (view2 != null) {
                08L.LIZ(view2, true);
                return;
            }
            return;
        }
        throw new 7xU("null cannot be cast to non-null type android.view.ViewGroup.LayoutParams");
    }
}
