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

import X.C4240Ntr;
import X.C4253Nu4;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.tools.mvtemplate.viewpager.MvItemFragment;

public class MvTemplateView$3 implements C4253Nu4 {
    public final /* synthetic */ C4240Ntr LIZ;

    static {
        Covode.recordClassIndex(120090);
    }

    public final void LIZ() {
        this.LIZ.LIZ.setAlpha(1.0f);
        this.LIZ.LIZIZ.setAlpha(1.0f);
    }

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

    public final void LIZ(float f) {
        MvItemFragment LIZIZ;
        if (this.LIZ.LJIILL == 0 && (LIZIZ = this.LIZ.LJIILIIL.LIZ(0)) != null) {
            this.LIZ.LJIILL = LIZIZ.LIZJ();
        }
        if (this.LIZ.LJIILL > 0 && f < 0.0f) {
            float abs = 1.0f - ((Math.abs(f) / ((float) this.LIZ.LJIILL)) * 2.0f);
            this.LIZ.LIZ.setAlpha(abs);
            this.LIZ.LIZIZ.setAlpha(abs);
        }
    }
}
