package com.tencent.mm.plugin.shake.ui;

import android.content.Intent;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.model.aw;
import com.tencent.mm.model.c;
import com.tencent.mm.n.a;
import com.tencent.mm.sdk.platformtools.bo;
import com.tencent.mm.storage.ad;
import com.tencent.mm.storage.bi.d;
import com.tencent.mm.storage.bt;

class ShakeSayHiListUI$7 implements OnItemClickListener {
    final /* synthetic */ ShakeSayHiListUI qwt;

    ShakeSayHiListUI$7(ShakeSayHiListUI shakeSayHiListUI) {
        this.qwt = shakeSayHiListUI;
    }

    public final void onItemClick(AdapterView<?> adapterView, View view, int i, long j) {
        AppMethodBeat.i(24880);
        bt btVar = (bt) ShakeSayHiListUI.b(this.qwt).getItem(i);
        if (btVar == null || btVar.field_content == null) {
            AppMethodBeat.o(24880);
            return;
        }
        d apF = d.apF(btVar.field_content);
        Intent intent = new Intent();
        intent.putExtra("Contact_User", apF.svN);
        intent.putExtra("Contact_Encryptusername", apF.xZx);
        intent.putExtra("Contact_Alias", apF.dFl);
        intent.putExtra("Contact_Nick", apF.nickname);
        intent.putExtra("Contact_QuanPin", apF.gwG);
        intent.putExtra("Contact_PyInitial", apF.gwF);
        intent.putExtra("Contact_Sex", apF.dtS);
        intent.putExtra("Contact_Signature", apF.signature);
        intent.putExtra("Contact_Scene", apF.scene);
        intent.putExtra("Contact_FMessageCard", true);
        intent.putExtra("Contact_City", apF.getCity());
        intent.putExtra("Contact_Province", apF.getProvince());
        intent.putExtra("Contact_Content", bo.isNullOrNil(btVar.field_sayhicontent) ? this.qwt.getString(2131298112) : btVar.field_sayhicontent);
        intent.putExtra("Contact_verify_Scene", apF.scene);
        intent.putExtra("Contact_Uin", apF.pnz);
        intent.putExtra("Contact_QQNick", apF.gwH);
        intent.putExtra("Contact_Mobile_MD5", apF.xZi);
        intent.putExtra("User_From_Fmessage", true);
        intent.putExtra("Contact_from_msgType", 37);
        intent.putExtra("Verify_ticket", apF.mGZ);
        intent.putExtra("Contact_ShowFMessageList", true);
        intent.putExtra("Contact_Source_FMessage", apF.scene);
        aw.ZK();
        ad aoO = c.XM().aoO(apF.svN);
        if (!(aoO == null || ((int) aoO.ewQ) < 0 || a.jh(aoO.field_type))) {
            int i2 = apF.cAd;
            if (i2 == 0 || i2 == 2 || i2 == 5) {
                intent.putExtra("User_Verify", true);
            }
            intent.putExtra("Contact_IsLBSFriend", true);
            intent.putExtra("Sns_from_Scene", 18);
        }
        com.tencent.mm.plugin.shake.a.gkE.c(intent, this.qwt);
        AppMethodBeat.o(24880);
    }
}
