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

import android.content.Intent;
import android.view.MenuItem;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.kernel.g;
import com.tencent.mm.plugin.profile.b;
import com.tencent.mm.plugin.profile.ui.c.8;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.al;
import com.tencent.mm.ui.base.h;
import com.tencent.mm.ui.base.n.d;
import com.tencent.ytcommon.BuildConfig;

class c$2 implements d {
    final /* synthetic */ c pmK;

    c$2(c cVar) {
        this.pmK = cVar;
    }

    public final void onMMMenuItemSelected(MenuItem menuItem, int i) {
        AppMethodBeat.i(23458);
        c cVar;
        switch (menuItem.getItemId()) {
            case 1:
                cVar = this.pmK;
                Intent intent = new Intent();
                intent.putExtra("Select_Talker_Name", cVar.ehM.field_username);
                intent.putExtra("Select_block_List", cVar.ehM.field_username);
                intent.putExtra("Select_Send_Card", true);
                intent.putExtra("Select_Conv_Type", 3);
                intent.putExtra("mutil_select_is_ret", true);
                b.gkE.a(intent, cVar.crP);
                AppMethodBeat.o(23458);
                return;
            case 2:
                this.pmK.crP.getString(2131299938, new Object[]{this.pmK.ehM.Oj()});
                h.d(this.pmK.crP, this.pmK.crP.getString(2131298459), BuildConfig.FLAVOR, this.pmK.crP.getString(2131298458), this.pmK.crP.getString(2131296868), new 1(this), null);
                AppMethodBeat.o(23458);
                return;
            case 3:
                this.pmK.caX();
                AppMethodBeat.o(23458);
                return;
            case 4:
                c cVar2 = this.pmK;
                ((com.tencent.mm.pluginsdk.h) g.K(com.tencent.mm.pluginsdk.h.class)).a(cVar2.pkW, cVar2.crP, cVar2.ehM, true, new c$3(cVar2));
                AppMethodBeat.o(23458);
                return;
            case 5:
                cVar = this.pmK;
                ab.d("MicroMsg.ContactWidgetBizInfo", "dealAddShortcut, username = " + cVar.ehM.field_username);
                com.tencent.mm.plugin.base.model.b.aa(cVar.crP, cVar.ehM.field_username);
                al.n(new 8(cVar), 1000);
                break;
        }
        AppMethodBeat.o(23458);
    }
}
