package androidx.lifecycle; import o.FNE; import o.InterfaceC16541pFg; import o.InterfaceC3451axm; import o.NER; import o.wdQ; /* loaded from: classes.dex */ public final class SavedStateHandleController implements InterfaceC3451axm { public boolean c = false; public final NER d; private final String e; public SavedStateHandleController(String str, NER ner) { this.e = str; this.d = ner; } public final void e(FNE fne, wdQ wdq) { if (this.c) { throw new IllegalStateException("Already attached to lifecycleOwner"); } this.c = true; wdq.e(this); fne.a(this.e, this.d.e); } @Override // o.InterfaceC3451axm public final void c(InterfaceC16541pFg interfaceC16541pFg, wdQ.HBt hBt) { if (hBt == wdQ.HBt.ON_DESTROY) { this.c = false; interfaceC16541pFg.getLifecycle().a(this); } } }