package com.ss.android.ugc.aweme.tools.mvtemplate;

import X.0GV;
import X.3F7;
import X.C4240Ntr;
import X.C4242Ntt;
import X.C4243Ntu;
import X.C4247Nty;
import X.C4249Nu0;
import X.CqM;
import android.widget.TextView;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.tools.mvtemplate.viewpager.MvItemFragment;

public class MvTemplateView$4 implements 0GV {
    public final /* synthetic */ C4240Ntr LIZ;

    static {
        Covode.recordClassIndex(120091);
    }

    public final void LIZIZ(int i) {
    }

    public MvTemplateView$4(C4240Ntr ntr) {
        this.LIZ = ntr;
    }

    public final void e_(int i) {
        C4249Nu0 LJ = this.LIZ.LJIILIIL.LJ(i);
        if (LJ != null) {
            if (this.LIZ.LJFF != i) {
                C4240Ntr ntr = this.LIZ;
                int i2 = ntr.LJFF;
                ntr.LIZ.setText(LJ.LIZ());
                TextView textView = ntr.LIZIZ;
                textView.setText(LJ.LIZ(ntr.LJIILJJIL));
                if (3F7.LIZ(ntr.getContext())) {
                    TextView textView2 = ntr.LIZJ;
                    textView2.setText(ntr.LJIILIIL.LIZIZ() + "/" + (i + 1));
                } else {
                    TextView textView3 = ntr.LIZJ;
                    textView3.setText((i + 1) + "/" + ntr.LJIILIIL.LIZIZ());
                }
                MvItemFragment LIZ2 = ntr.LIZ(i2);
                if (!(LIZ2 == null || LIZ2.LIZLLL == null)) {
                    LIZ2.LJFF();
                }
                MvItemFragment LIZ3 = ntr.LIZ(i);
                if (!(LIZ3 == null || LIZ3.LIZLLL == null)) {
                    LIZ3.LIZLLL();
                }
                ntr.LIZ(LJ);
                if (ntr.LJIIJJI != null) {
                    ntr.LJIIJJI.LIZ(LJ, 3, i);
                }
            }
            this.LIZ.LJFF = i;
        }
        this.LIZ.LJI = i;
    }

    public final void LIZ(int i, float f, int i2) {
        CqM.LIZ(new C4242Ntt(C4243Ntu.SCROLL, C4247Nty.MAIN_TEMPLATE, i, f));
    }
}
