package androidx.lifecycle;

import c.l.f;
import c.l.j;
import c.l.l;
import c.l.n;

/* JADX INFO: loaded from: classes.dex */
public class FullLifecycleObserverAdapter implements l {
    public final f a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final l f374b;

    public FullLifecycleObserverAdapter(f fVar, l lVar) {
        this.a = fVar;
        this.f374b = lVar;
    }

    @Override // c.l.l
    public void g(n nVar, j.a aVar) {
        switch (aVar) {
            case ON_CREATE:
                this.a.a(nVar);
                break;
            case ON_START:
                this.a.e(nVar);
                break;
            case ON_RESUME:
                this.a.f(nVar);
                break;
            case ON_PAUSE:
                this.a.b(nVar);
                break;
            case ON_STOP:
                this.a.c(nVar);
                break;
            case ON_DESTROY:
                this.a.d(nVar);
                break;
            case ON_ANY:
                throw new IllegalArgumentException("ON_ANY must not been send by anybody");
        }
        l lVar = this.f374b;
        if (lVar != null) {
            lVar.g(nVar, aVar);
        }
    }
}
