package com.tencent.mm.pluginsdk.ui.preference;

import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
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.storage.ad;

class NormalUserHeaderPreference$3 implements OnClickListener {
    final /* synthetic */ NormalUserHeaderPreference vrk;

    NormalUserHeaderPreference$3(NormalUserHeaderPreference normalUserHeaderPreference) {
        this.vrk = normalUserHeaderPreference;
    }

    public final void onClick(View view) {
        AppMethodBeat.i(28073);
        NormalUserHeaderPreference.c(this.vrk);
        NormalUserHeaderPreference normalUserHeaderPreference = this.vrk;
        aw.ZK();
        ad aoO = c.XM().aoO(normalUserHeaderPreference.ehM.field_username);
        if (!(aoO == null || ((int) aoO.ewQ) == 0 || !aoO.field_username.equals(normalUserHeaderPreference.ehM.field_username))) {
            normalUserHeaderPreference.ehM = aoO;
        }
        Intent intent;
        if (a.jh(normalUserHeaderPreference.ehM.field_type)) {
            intent = new Intent();
            intent.setClassName(normalUserHeaderPreference.mContext, "com.tencent.mm.ui.contact.ContactRemarkInfoModUI");
            intent.putExtra("Contact_Scene", normalUserHeaderPreference.qvb);
            intent.putExtra("Contact_User", normalUserHeaderPreference.ehM.field_username);
            intent.putExtra("Contact_RoomNickname", normalUserHeaderPreference.crP.getIntent().getStringExtra("Contact_RoomNickname"));
            ((Activity) normalUserHeaderPreference.mContext).startActivity(intent);
            AppMethodBeat.o(28073);
            return;
        }
        intent = new Intent();
        intent.setClassName(normalUserHeaderPreference.mContext, "com.tencent.mm.ui.contact.ModRemarkNameUI");
        intent.putExtra("Contact_Scene", normalUserHeaderPreference.qvb);
        intent.putExtra("Contact_mode_name_type", 0);
        intent.putExtra("Contact_ModStrangerRemark", true);
        intent.putExtra("Contact_User", normalUserHeaderPreference.ehM.field_username);
        intent.putExtra("Contact_Nick", normalUserHeaderPreference.ehM.field_nickname);
        intent.putExtra("Contact_RemarkName", normalUserHeaderPreference.ehM.field_conRemark);
        ((Activity) normalUserHeaderPreference.mContext).startActivity(intent);
        AppMethodBeat.o(28073);
    }
}
