package xyz.netfly.mobile.player;

import android.content.Intent;
import android.os.Parcelable;
import android.view.View;
import org.drive_hunter.R;
import xyz.netfly.mobile.view.CastAndCrewDetailActivity;
import xyz.stream.api.entity.SeriesEntity;
import xyz.stream.download.DownloadFile;

/* JADX INFO: loaded from: classes3.dex */
public final /* synthetic */ class i implements le.a, le.b, u4.c, u4.a {

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

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

    public /* synthetic */ i(t tVar, int i10) {
        this.f34979a = i10;
        this.f34980b = tVar;
    }

    @Override // le.a
    public final void a() {
        this.f34980b.F();
    }

    @Override // u4.a
    public final Object apply(Object obj) {
        return this.f34980b.f35007a.getString(R.string.season) + " " + ((Integer) obj);
    }

    @Override // le.b
    public final void onItemClick(View view, int i10) {
        int i11 = this.f34979a;
        t tVar = this.f34980b;
        switch (i11) {
            case 1:
                tVar.getClass();
                Intent intent = new Intent(tVar.f35007a, (Class<?>) CastAndCrewDetailActivity.class);
                intent.putExtra("cast_crew", (Parcelable) tVar.N.get(i10));
                tVar.X.launch(intent, null);
                break;
            case 2:
            default:
                if (tVar.V != null) {
                    tVar.S.a(i10);
                    tVar.V.a(((SeriesEntity) tVar.P.get(i10)).getVideoId());
                }
                break;
            case 3:
                tVar.f35007a.runOnUiThread(new a(tVar, i10, 0));
                break;
        }
    }

    @Override // u4.c
    public final boolean test(Object obj) {
        int i10 = this.f34979a;
        t tVar = this.f34980b;
        switch (i10) {
            case 2:
                DownloadFile downloadFile = (DownloadFile) obj;
                if (tVar.A == 3) {
                    if (downloadFile.getEpisodeId() == null || downloadFile.getEpisodeId().intValue() != tVar.f35032z) {
                    }
                } else if (downloadFile.getVideoId().intValue() != tVar.f35032z) {
                }
                break;
            case 6:
                tVar.getClass();
                break;
            case 7:
                tVar.getClass();
                if (((SeriesEntity) obj).getVideoId() == tVar.f35031y.getVideoId()) {
                }
                break;
            default:
                tVar.getClass();
                if (((SeriesEntity) obj).getVideoId() == tVar.I) {
                }
                break;
        }
        return true;
    }
}
