what-the-bank/sources/androidx/lifecycle/WithLifecycleStateKt$suspen...

49 lines
1.7 KiB
Java

package androidx.lifecycle;
import o.C13395fZS;
import o.C14957gcv;
import o.InterfaceC14890gbN;
import o.InterfaceC14907gbi;
import o.InterfaceC15027gev;
import o.InterfaceC16541pFg;
import o.InterfaceC3451axm;
import o.wdQ;
/* loaded from: classes.dex */
public final class WithLifecycleStateKt$suspendWithStateAtLeastUnchecked$2$observer$1 implements InterfaceC3451axm {
final wdQ.IeS a;
final InterfaceC14890gbN<R> c;
final InterfaceC15027gev<R> d;
final wdQ e;
@Override // o.InterfaceC3451axm
public final void c(InterfaceC16541pFg interfaceC16541pFg, wdQ.HBt hBt) {
Object a;
C14957gcv.e(interfaceC16541pFg, "");
C14957gcv.e(hBt, "");
if (hBt == wdQ.HBt.b(this.a)) {
this.e.a(this);
InterfaceC14907gbi interfaceC14907gbi = this.d;
InterfaceC14890gbN<R> interfaceC14890gbN = this.c;
try {
C13395fZS.IeS ieS = C13395fZS.b;
a = C13395fZS.a(interfaceC14890gbN.invoke());
} catch (Throwable th) {
C13395fZS.IeS ieS2 = C13395fZS.b;
C14957gcv.e(th, "");
a = C13395fZS.a(new C13395fZS.LWm(th));
}
interfaceC14907gbi.resumeWith(a);
return;
}
if (hBt == wdQ.HBt.ON_DESTROY) {
this.e.a(this);
InterfaceC14907gbi interfaceC14907gbi2 = this.d;
C13395fZS.IeS ieS3 = C13395fZS.b;
LifecycleDestroyedException lifecycleDestroyedException = new LifecycleDestroyedException();
C14957gcv.e(lifecycleDestroyedException, "");
interfaceC14907gbi2.resumeWith(C13395fZS.a(new C13395fZS.LWm(lifecycleDestroyedException)));
}
}
}