package androidx.lifecycle;

import androidx.lifecycle.n;

/* loaded from: classes.dex */
public final class p0 implements r {

    /* renamed from: p, reason: collision with root package name */
    private final s0 f4882p;

    public p0(s0 provider) {
        kotlin.jvm.internal.t.g(provider, "provider");
        this.f4882p = provider;
    }

    @Override // androidx.lifecycle.r
    public void f(u source, n.a event) {
        kotlin.jvm.internal.t.g(source, "source");
        kotlin.jvm.internal.t.g(event, "event");
        if (event == n.a.ON_CREATE) {
            source.getLifecycle().d(this);
            this.f4882p.d();
        } else {
            throw new IllegalStateException(("Next event must be ON_CREATE, it was " + event).toString());
        }
    }
}
