package com.bumptech.glide.manager; import java.util.HashSet; import java.util.Iterator; import java.util.Set; import o.FKd; import o.InterfaceC16186lzC; import o.InterfaceC16541pFg; import o.Lco; import o.RDs; import o.wdQ; import o.zZV; /* loaded from: classes.dex */ public final class LifecycleLifecycle implements zZV, InterfaceC16186lzC { private final wdQ b; private final Set d = new HashSet(); public LifecycleLifecycle(wdQ wdq) { this.b = wdq; wdq.e(this); } @RDs(d = wdQ.HBt.ON_START) public final void onStart(InterfaceC16541pFg interfaceC16541pFg) { Iterator it = FKd.b(this.d).iterator(); while (it.hasNext()) { ((Lco) it.next()).a(); } } @RDs(d = wdQ.HBt.ON_STOP) public final void onStop(InterfaceC16541pFg interfaceC16541pFg) { Iterator it = FKd.b(this.d).iterator(); while (it.hasNext()) { ((Lco) it.next()).c(); } } @RDs(d = wdQ.HBt.ON_DESTROY) public final void onDestroy(InterfaceC16541pFg interfaceC16541pFg) { Iterator it = FKd.b(this.d).iterator(); while (it.hasNext()) { ((Lco) it.next()).d(); } interfaceC16541pFg.getLifecycle().a(this); } @Override // o.zZV public final void e(Lco lco) { this.d.add(lco); if (this.b.a() == wdQ.IeS.DESTROYED) { lco.d(); } else if (this.b.a().compareTo(wdQ.IeS.STARTED) >= 0) { lco.a(); } else { lco.c(); } } @Override // o.zZV public final void b(Lco lco) { this.d.remove(lco); } }