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

import android.content.Context;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.report.service.h;
import com.tencent.mm.plugin.sns.data.i;
import com.tencent.mm.plugin.sns.storage.v;
import com.tencent.mm.ui.MMActivity;
import com.tencent.ytcommon.BuildConfig;

class r$3 implements OnClickListener {
    final /* synthetic */ r riS;
    final /* synthetic */ Context val$context;

    r$3(r rVar, Context context) {
        this.riS = rVar;
        this.val$context = context;
    }

    public final void onClick(View view) {
        AppMethodBeat.i(38237);
        if (r.a(this.riS) == null) {
            AppMethodBeat.o(38237);
            return;
        }
        String jV = r.a(this.riS).field_snsId == 0 ? BuildConfig.FLAVOR : i.jV(r.a(this.riS).field_snsId);
        h.pYm.e(11989, new Object[]{Integer.valueOf(3), jV, Integer.valueOf(0)});
        int i = r.a(this.riS).reX;
        Intent intent = new Intent();
        intent.setClass(this.val$context, SnsCommentDetailUI.class);
        intent.putExtra("INTENT_TALKER", r.a(this.riS).field_userName);
        intent.putExtra("INTENT_SNS_LOCAL_ID", v.ap("sns_table_", (long) i));
        intent.putExtra("INTENT_FROMGALLERY", true);
        ((MMActivity) this.val$context).startActivityForResult(intent, 1);
        AppMethodBeat.o(38237);
    }
}
