package xyz.netfly.player;

import java.util.ArrayList;
import java.util.List;
import xyz.stream.api.entity.SubtitlePlayEntity;
import xyz.stream.api.t;

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

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

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

    public /* synthetic */ b(n nVar, int i10) {
        this.f35179a = i10;
        this.f35180b = nVar;
    }

    @Override // xyz.stream.api.t
    public final void onSubtitleFetched(List list) {
        this.f35180b.w((ArrayList) list);
    }

    @Override // u4.c
    public final boolean test(Object obj) {
        int i10 = this.f35179a;
        n nVar = this.f35180b;
        switch (i10) {
            case 1:
                SubtitlePlayEntity subtitlePlayEntity = (SubtitlePlayEntity) obj;
                nVar.getClass();
                if (!n.p(subtitlePlayEntity.getTitle()) && !"Off".equals(subtitlePlayEntity.getTitle())) {
                    break;
                }
                break;
            default:
                SubtitlePlayEntity subtitlePlayEntity2 = (SubtitlePlayEntity) obj;
                nVar.getClass();
                if (!n.p(subtitlePlayEntity2.getTitle()) && subtitlePlayEntity2.getInnerSubtitleEntity() != null) {
                    break;
                }
                break;
        }
        return true;
    }
}
