package com.tencent.mm.plugin.topstory.ui.video.list;

import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.ab;

class f$9 implements OnClickListener {
    final /* synthetic */ f sGV;

    f$9(f fVar) {
        this.sGV = fVar;
    }

    public final void onClick(View view) {
        AppMethodBeat.i(2052);
        if (!this.sGV.getListVideoUIComponent().cFV().sFw) {
            ab.i("MicroMsg.TopStory.TopStoryListVideoContainer", "no video play now");
            AppMethodBeat.o(2052);
        } else if (f.g(this.sGV).getVideoTotalTime() - f.g(this.sGV).getmPosition() < 2) {
            ab.i("MicroMsg.TopStory.TopStoryListVideoContainer", "cannot change play status in last 2 seconds");
            AppMethodBeat.o(2052);
        } else {
            this.sGV.getListVideoUIComponent().cFR().f(f.M(this.sGV));
            if (this.sGV.getListVideoUIComponent().cFV().cGZ()) {
                this.sGV.getListVideoUIComponent().cFV().cpN();
                f.g(this.sGV).cHd();
            } else {
                this.sGV.getListVideoUIComponent().cFV().cEf();
                f.g(this.sGV).aFE();
            }
            this.sGV.cGp();
            AppMethodBeat.o(2052);
        }
    }
}
