package xyz.netfly.ui.live.epg;

import androidx.recyclerview.widget.RecyclerView;
import androidx.recyclerview.widget.v1;
import ie.l5;
import xyz.stream.view.RecyclerWithPositionView;

/* JADX INFO: loaded from: classes3.dex */
public final class d extends v1 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f35341a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ EPGView f35342b;

    public /* synthetic */ d(EPGView ePGView, int i10) {
        this.f35341a = i10;
        this.f35342b = ePGView;
    }

    @Override // androidx.recyclerview.widget.v1
    public final void onScrolled(RecyclerView recyclerView, int i10, int i11) {
        int i12 = this.f35341a;
        EPGView ePGView = this.f35342b;
        switch (i12) {
            case 0:
                super.onScrolled(recyclerView, i10, i11);
                int i13 = EPGView.f35314u0;
                ePGView.j(recyclerView, i10);
                ePGView.l(recyclerView, i10);
                ePGView.o();
                break;
            default:
                l5 l5Var = ePGView.R;
                RecyclerWithPositionView recyclerWithPositionView = l5Var.f27184c;
                int i14 = 0;
                d dVar = ePGView.W;
                if (recyclerWithPositionView != recyclerView) {
                    recyclerWithPositionView.clearOnScrollListeners();
                    RecyclerWithPositionView recyclerWithPositionView2 = l5Var.f27184c;
                    recyclerWithPositionView2.scrollBy(0, i11);
                    recyclerWithPositionView2.addOnScrollListener(dVar);
                }
                ePGView.post(new a(ePGView, i14));
                l5 l5Var2 = ePGView.R;
                RecyclerWithPositionView recyclerWithPositionView3 = l5Var2.f27183b;
                if (recyclerWithPositionView3 != recyclerView) {
                    recyclerWithPositionView3.clearOnScrollListeners();
                    RecyclerWithPositionView recyclerWithPositionView4 = l5Var2.f27183b;
                    recyclerWithPositionView4.scrollBy(0, i11);
                    recyclerWithPositionView4.addOnScrollListener(dVar);
                }
                ePGView.post(new a(ePGView, i14));
                break;
        }
    }
}
