package androidx.lifecycle;

import b.j.b;
import b.j.d;
import b.j.e;
import b.j.g;

/* JADX INFO: loaded from: classes.dex */
public class FullLifecycleObserverAdapter implements e {

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

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

    public FullLifecycleObserverAdapter(b bVar, e eVar) {
        this.f170a = bVar;
        this.f171b = eVar;
    }

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