package androidx.lifecycle;

import d.m.c;
import d.m.e;
import d.m.f;
import d.m.h;

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

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

    public FullLifecycleObserverAdapter(c cVar, f fVar) {
        this.a = cVar;
        this.f687b = fVar;
    }

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