package R5;

import android.content.Intent;
import android.os.Bundle;
import com.martsnew.tv.ui.player.TvPlayerActivity;
import n4.u0;

/* JADX INFO: loaded from: classes.dex */
public final class r extends P6.h implements O6.a {

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

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final /* synthetic */ TvPlayerActivity f6186s;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ r(TvPlayerActivity tvPlayerActivity, int i) {
        super(0);
        this.f6185r = i;
        this.f6186s = tvPlayerActivity;
    }

    @Override // O6.a
    public final Object a() {
        Bundle extras;
        switch (this.f6185r) {
            case u0.f15495q /* 0 */:
                TvPlayerActivity tvPlayerActivity = this.f6186s;
                Intent intent = tvPlayerActivity.getIntent();
                if (intent != null) {
                    extras = intent.getExtras();
                    if (extras == null) {
                        throw new IllegalStateException("Activity " + tvPlayerActivity + " has null extras in " + intent);
                    }
                } else {
                    extras = null;
                }
                if (extras != null) {
                    return extras;
                }
                throw new IllegalStateException("Activity " + tvPlayerActivity + " has a null Intent");
            case 1:
                return this.f6186s.H();
            case 2:
                return this.f6186s.r();
            default:
                return this.f6186s.a();
        }
    }
}
