package com.tencent.mm.plugin.appbrand.f;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.g.a.se;
import com.tencent.mm.modelappbrand.a.f;
import com.tencent.mm.plugin.appbrand.f.d.a;
import com.tencent.mm.plugin.fts.a.d.a.a.b;
import com.tencent.mm.sdk.platformtools.bo;

public class d$b extends b {
    final /* synthetic */ d hpY;

    public d$b(d dVar) {
        this.hpY = dVar;
        super(dVar);
    }

    public final View a(Context context, ViewGroup viewGroup) {
        AppMethodBeat.i(129970);
        View inflate = LayoutInflater.from(context).inflate(2130968681, viewGroup, false);
        a aVar = this.hpY.hpV;
        aVar.ejo = (ImageView) inflate.findViewById(2131821183);
        aVar.gnB = (TextView) inflate.findViewById(2131821185);
        aVar.contentView = inflate.findViewById(2131821182);
        aVar.hpW = (TextView) inflate.findViewById(2131821186);
        aVar.hpX = (TextView) inflate.findViewById(2131821153);
        inflate.setTag(aVar);
        AppMethodBeat.o(129970);
        return inflate;
    }

    public final void a(Context context, com.tencent.mm.plugin.fts.a.d.a.a.a aVar, com.tencent.mm.plugin.fts.a.d.a.a aVar2, Object... objArr) {
        AppMethodBeat.i(129971);
        d dVar = (d) aVar2;
        a aVar3 = (a) aVar;
        if (dVar.hpT == null) {
            aVar3.contentView.setVisibility(8);
            AppMethodBeat.o(129971);
            return;
        }
        aVar3.contentView.setVisibility(0);
        aVar3.gnB.setText(this.hpY.eoj);
        String no = com.tencent.mm.plugin.appbrand.appcache.b.no(this.hpY.hpT.gVs);
        if (bo.isNullOrNil(no)) {
            aVar3.hpX.setVisibility(8);
        } else {
            aVar3.hpX.setText(no);
            aVar3.hpX.setVisibility(0);
        }
        com.tencent.mm.modelappbrand.a.b.abR().a(aVar3.ejo, dVar.hpT.hac, com.tencent.mm.modelappbrand.a.a.abQ(), f.fqH);
        AppMethodBeat.o(129971);
    }

    public final boolean a(Context context, com.tencent.mm.plugin.fts.a.d.a.a aVar) {
        AppMethodBeat.i(129972);
        d dVar = (d) aVar;
        se seVar = new se();
        seVar.cOf.userName = dVar.hpT.csl;
        seVar.cOf.cOi = dVar.hpT.gVs;
        seVar.cOf.cOl = true;
        seVar.cOf.scene = 1027;
        com.tencent.mm.sdk.b.a.xxA.m(seVar);
        AppMethodBeat.o(129972);
        return true;
    }
}
