package com.tencent.mm.plugin.brandservice.ui.timeline.video;

import a.f.b.j;
import a.l;
import a.v;
import android.content.Context;
import android.view.MotionEvent;
import android.view.View;
import android.view.View.OnTouchListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.ui.MMActivity;

@l(dWo = {1, 1, 13}, dWp = {"\u0000\u0016\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\u00020\u00012\u000e\u0010\u0002\u001a\n \u0004*\u0004\u0018\u00010\u00030\u00032\u000e\u0010\u0005\u001a\n \u0004*\u0004\u0018\u00010\u00060\u0006H\n¢\u0006\u0002\b\u0007"}, dWq = {"<anonymous>", "", "v", "Landroid/view/View;", "kotlin.jvm.PlatformType", "event", "Landroid/view/MotionEvent;", "onTouch"})
final class BizVideoDetailUI$ac implements OnTouchListener {
    final /* synthetic */ BizVideoDetailUI jWD;

    BizVideoDetailUI$ac(BizVideoDetailUI bizVideoDetailUI) {
        this.jWD = bizVideoDetailUI;
    }

    public final boolean onTouch(View view, MotionEvent motionEvent) {
        AppMethodBeat.i(15173);
        j.o(motionEvent, "event");
        if (motionEvent.getAction() == 0) {
            MPVideoWriteCommentLayout i = BizVideoDetailUI.i(this.jWD);
            if (i.jYe == -3) {
                Context context = i.getContext();
                if (context == null) {
                    v vVar = new v("null cannot be cast to non-null type com.tencent.mm.ui.MMActivity");
                    AppMethodBeat.o(15173);
                    throw vVar;
                }
                ((MMActivity) context).aqX();
            } else if (i.jXV.aYU() && i.aFF()) {
                i.jXV.aYW();
            } else {
                i.hide();
            }
        }
        AppMethodBeat.o(15173);
        return true;
    }
}
