package androidx.fragment.app;

import android.os.Bundle;
import androidx.lifecycle.f;

/* JADX INFO: loaded from: classes.dex */
class FragmentManager$6 implements androidx.lifecycle.j {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    final /* synthetic */ String f692b;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    final /* synthetic */ r f693f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    final /* synthetic */ androidx.lifecycle.f f694g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    final /* synthetic */ m f695h;

    @Override // androidx.lifecycle.j
    public void d(androidx.lifecycle.l lVar, f.b bVar) {
        Bundle bundle;
        if (bVar == f.b.ON_START && (bundle = (Bundle) this.f695h.f782j.get(this.f692b)) != null) {
            this.f693f.a(this.f692b, bundle);
            this.f695h.q(this.f692b);
        }
        if (bVar == f.b.ON_DESTROY) {
            this.f694g.c(this);
            this.f695h.f783k.remove(this.f692b);
        }
    }
}
