package com.ss.android.ugc.aweme.shortvideo.cut.videoedit;

import X.0EK;
import X.2Hz;
import X.C5718Ocb;
import X.C5740Ocx;
import androidx.recyclerview.widget.RecyclerView;
import com.bytedance.covode.number.Covode;

public class VideoEditView$4 extends 0EK {
    public final /* synthetic */ C5718Ocb LIZ;
    public boolean LIZIZ;

    static {
        Covode.recordClassIndex(109017);
    }

    public final /* synthetic */ void LIZ() {
        this.LIZ.LJIJJ = false;
    }

    public VideoEditView$4(C5718Ocb ocb) {
        this.LIZ = ocb;
    }

    public final void LIZ(RecyclerView recyclerView, int i) {
        if (i == 0) {
            if (this.LIZIZ) {
                this.LIZ.LJ.LJI();
                this.LIZIZ = false;
            }
            recyclerView.postDelayed(new C5740Ocx(this), 100);
        } else {
            this.LIZ.LJIJJ = true;
        }
        VideoEditView$4.super.LIZ(recyclerView, i);
    }

    public final void LIZ(RecyclerView recyclerView, int i, int i2) {
        if (i != 0) {
            this.LIZIZ = true;
            C5718Ocb ocb = this.LIZ;
            int i3 = ocb.LJJIJIIJIL;
            if (2Hz.LIZ(recyclerView.getContext())) {
                i = -i;
            }
            ocb.LJJIJIIJIL = i3 + i;
            this.LIZ.LIZIZ();
            this.LIZ.LJIIIIZZ();
            this.LIZ.LJIIIZ();
            this.LIZ.LJ.LJFF();
        }
    }
}
