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

import android.content.Intent;
import android.os.Bundle;
import android.os.Looper;
import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.kernel.g;
import com.tencent.mm.modelsns.SnsAdClick;
import com.tencent.mm.modelstat.i;
import com.tencent.mm.plugin.sns.a.b.j;
import com.tencent.mm.plugin.sns.a.b.j$a;
import com.tencent.mm.sdk.platformtools.ak;
import com.tencent.mm.sdk.platformtools.bo;

class VideoAdPlayerUI$4 implements OnClickListener {
    final /* synthetic */ VideoAdPlayerUI rEw;

    VideoAdPlayerUI$4(VideoAdPlayerUI videoAdPlayerUI) {
        this.rEw = videoAdPlayerUI;
    }

    public final void onClick(View view) {
        AppMethodBeat.i(39916);
        if (VideoAdPlayerUI.q(this.rEw) != 0) {
            j.a(j$a.DetailInVideo, this.rEw.rEg, this.rEw.rEf, VideoAdPlayerUI.r(this.rEw), VideoAdPlayerUI.q(this.rEw), VideoAdPlayerUI.s(this.rEw), VideoAdPlayerUI.t(this.rEw), VideoAdPlayerUI.u(this.rEw), VideoAdPlayerUI.v(this.rEw), VideoAdPlayerUI.w(this.rEw), VideoAdPlayerUI.x(this.rEw));
        }
        if (VideoAdPlayerUI.e(this.rEw) != 0) {
            int i = VideoAdPlayerUI.a(this.rEw).qEs.qFq;
            if (VideoAdPlayerUI.b(this.rEw) && VideoAdPlayerUI.a(this.rEw).qEs.qFu != 0) {
                i += (int) (bo.az(VideoAdPlayerUI.a(this.rEw).qEs.qFu) / 1000);
            }
            i iVar = new i(13228, "1,1," + i + "," + VideoAdPlayerUI.f(this.rEw) + "," + VideoAdPlayerUI.g(this.rEw) + "," + bo.anT() + "," + VideoAdPlayerUI.h(this.rEw) + "," + VideoAdPlayerUI.i(this.rEw), (int) bo.anT());
            g.RQ();
            g.RO().eJo.a(iVar, 0);
        }
        this.rEw.finish();
        Intent intent = new Intent();
        Bundle bundle = new Bundle();
        bundle.putString("key_snsad_statextstr", VideoAdPlayerUI.y(this.rEw));
        intent.putExtra("jsapiargs", bundle);
        intent.putExtra("rawUrl", VideoAdPlayerUI.z(this.rEw));
        intent.putExtra("useJs", true);
        if (VideoAdPlayerUI.A(this.rEw)) {
            com.tencent.mm.plugin.sns.data.i.a(new SnsAdClick(0, 6, VideoAdPlayerUI.B(this.rEw).field_snsId, 18, 0));
        }
        new ak(Looper.getMainLooper()).post(new 1(this, intent));
        AppMethodBeat.o(39916);
    }
}
