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.sdk.platformtools.ab;
import com.tencent.ytcommon.BuildConfig;

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

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

    public final void onClick(View view) {
        AppMethodBeat.i(38236);
        ab.d("MicroMsg.GalleryFooter", "comment cmd");
        if (r.a(this.riS) == null) {
            AppMethodBeat.o(38236);
            return;
        }
        int i = r.a(this.riS).reX;
        Intent intent = new Intent();
        intent.putExtra("sns_comment_localId", i);
        intent.putExtra("sns_source", r.b(this.riS));
        intent.setClass(this.val$context, SnsCommentUI.class);
        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(2), jV, Integer.valueOf(0)});
        this.val$context.startActivity(intent);
        AppMethodBeat.o(38236);
    }
}
