package xyz.netfly.mobile.player;

import org.drive_hunter.R;
import xyz.stream.api.viewmodel.VideoActionViewModel;

/* JADX INFO: loaded from: classes3.dex */
public final /* synthetic */ class f implements Runnable {

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

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

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

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

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ Object f34973e;

    public /* synthetic */ f(int i10, int i11, int i12, androidx.lifecycle.w wVar) {
        this.f34969a = 2;
        this.f34970b = i10;
        this.f34971c = i11;
        this.f34972d = i12;
        this.f34973e = wVar;
    }

    @Override // java.lang.Runnable
    public final void run() {
        int i10 = this.f34969a;
        int i11 = this.f34972d;
        int i12 = this.f34971c;
        int i13 = this.f34970b;
        Object obj = this.f34973e;
        switch (i10) {
            case 0:
                t tVar = (t) obj;
                if (tVar.f35032z == i13) {
                    tVar.H = i12;
                    if (i12 == 46) {
                        tVar.f35009c.f27711l.setImageResource(R.mipmap.downloaded);
                        tVar.f35009c.f27711l.setVisibility(0);
                        tVar.f35009c.L.setText(tVar.f35007a.getString(R.string.done));
                        tVar.f35009c.f27718s.setVisibility(8);
                    } else if (i12 == 42 || i12 == 44 || i12 == 43) {
                        tVar.f35009c.f27711l.setVisibility(8);
                        tVar.f35009c.L.setText(tVar.f35007a.getString(R.string.downloading));
                        tVar.f35009c.f27718s.setVisibility(0);
                        tVar.f35009c.f27712m.setPadding(8, 8, 8, 8);
                        tVar.f35009c.f27712m.setImageResource(R.mipmap.download_start);
                        tVar.f35009c.f27707h.setProgress(i11);
                    } else if (i12 == 45 || i12 == 47) {
                        tVar.f35009c.f27711l.setVisibility(8);
                        tVar.f35009c.L.setText(tVar.f35007a.getString(R.string.pause));
                        tVar.f35009c.f27718s.setVisibility(0);
                        tVar.f35009c.f27712m.setPadding(5, 0, 0, 0);
                        tVar.f35009c.f27712m.setImageResource(R.mipmap.download_pause);
                        tVar.f35009c.f27707h.setProgress(i11);
                    } else {
                        tVar.f35009c.f27711l.setImageResource(R.mipmap.icon_download_white);
                        tVar.f35009c.f27711l.setVisibility(0);
                        tVar.f35009c.f27718s.setVisibility(8);
                    }
                }
                break;
            case 1:
                xyz.stream.api.d dVar = (xyz.stream.api.d) obj;
                dVar.i(dVar.c(i13, i12, i11), i13, i12, i11);
                break;
            default:
                VideoActionViewModel.lambda$getCollectionVideoList$4(i13, i12, i11, (androidx.lifecycle.w) obj);
                break;
        }
    }

    public /* synthetic */ f(Object obj, int i10, int i11, int i12, int i13) {
        this.f34969a = i13;
        this.f34973e = obj;
        this.f34970b = i10;
        this.f34971c = i11;
        this.f34972d = i12;
    }
}
