package androidx.browser.customtabs;

import android.app.Notification;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import androidx.work.impl.foreground.SystemForegroundService;

/* JADX INFO: loaded from: classes.dex */
public final class i implements Runnable {

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

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

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

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

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

    public i(SystemForegroundService systemForegroundService, int i10, Notification notification, int i11) {
        this.f867e = systemForegroundService;
        this.f864b = i10;
        this.f866d = notification;
        this.f865c = i11;
    }

    @Override // java.lang.Runnable
    public final void run() {
        int i10 = this.f863a;
        int i11 = this.f865c;
        Object obj = this.f867e;
        int i12 = this.f864b;
        Parcelable parcelable = this.f866d;
        switch (i10) {
            case 0:
                ((k) obj).f876b.onActivityResized(i12, i11, (Bundle) parcelable);
                break;
            default:
                if (Build.VERSION.SDK_INT < 29) {
                    ((SystemForegroundService) obj).startForeground(i12, (Notification) parcelable);
                } else {
                    ((SystemForegroundService) obj).startForeground(i12, (Notification) parcelable, i11);
                }
                break;
        }
    }

    public i(k kVar, int i10, int i11, Bundle bundle) {
        this.f867e = kVar;
        this.f864b = i10;
        this.f865c = i11;
        this.f866d = bundle;
    }
}
