package he;

import xyz.netfly.SplashActivity;
import xyz.netfly.ads.g;
import xyz.netfly.ui.live.tv.LiveActivity;
import xyz.stream.api.entity.LiveChannelEntity;
import xyz.stream.utils.event.MatchReminderEvent;
import xyz.stream.view.BaseActivity;
import xyz.stream.view.ViewRuntime;

/* JADX INFO: loaded from: classes3.dex */
public final /* synthetic */ class c implements ViewRuntime.MatchReminderHandler, g {

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

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

    public /* synthetic */ c(SplashActivity splashActivity, int i10) {
        this.f26470a = i10;
        this.f26471b = splashActivity;
    }

    @Override // xyz.netfly.ads.g
    public final void b() {
        int i10 = this.f26470a;
        SplashActivity splashActivity = this.f26471b;
        switch (i10) {
            case 1:
                int i11 = SplashActivity.f34824f;
                splashActivity.K(false);
                break;
            default:
                int i12 = SplashActivity.f34824f;
                splashActivity.K(false);
                break;
        }
    }

    @Override // xyz.stream.view.ViewRuntime.MatchReminderHandler
    public final void handle(BaseActivity baseActivity, Object obj) {
        MatchReminderEvent matchReminderEvent = (MatchReminderEvent) obj;
        int i10 = SplashActivity.f34824f;
        this.f26471b.getClass();
        if (matchReminderEvent == null || matchReminderEvent.matchReminderEntity == null) {
            return;
        }
        LiveChannelEntity liveChannelEntityH = re.a.u().h(matchReminderEvent.matchReminderEntity.getChannelId());
        String simpleName = baseActivity.getClass().getSimpleName();
        if (simpleName.equals("LiveActivity") || simpleName.equals("LivePlayActivity")) {
            baseActivity.playReminderLive(liveChannelEntityH);
            return;
        }
        if (simpleName.equals("PlayerActivity") || simpleName.equals("IptvLiveActivity") || simpleName.equals("PlaybackActivity")) {
            baseActivity.finish();
        }
        if (liveChannelEntityH != null) {
            LiveActivity.S(baseActivity, liveChannelEntityH, liveChannelEntityH.getCategoryId().intValue());
        }
    }
}
