59 lines
2.6 KiB
Java
59 lines
2.6 KiB
Java
package androidx.lifecycle;
|
|
|
|
import d0.l;
|
|
import d0.w.h.c;
|
|
import d0.w.i.a.e;
|
|
import d0.w.i.a.k;
|
|
import d0.z.d.m;
|
|
import kotlin.Unit;
|
|
import kotlin.coroutines.Continuation;
|
|
import kotlin.jvm.functions.Function2;
|
|
import kotlinx.coroutines.CoroutineScope;
|
|
/* compiled from: CoroutineLiveData.kt */
|
|
@e(c = "androidx.lifecycle.BlockRunner$maybeRun$1", f = "CoroutineLiveData.kt", l = {176}, m = "invokeSuspend")
|
|
public final class BlockRunner$maybeRun$1 extends k implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
|
|
private /* synthetic */ Object L$0;
|
|
public int label;
|
|
public final /* synthetic */ BlockRunner this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public BlockRunner$maybeRun$1(BlockRunner blockRunner, Continuation continuation) {
|
|
super(2, continuation);
|
|
this.this$0 = blockRunner;
|
|
}
|
|
|
|
@Override // d0.w.i.a.a
|
|
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
|
m.checkNotNullParameter(continuation, "completion");
|
|
BlockRunner$maybeRun$1 blockRunner$maybeRun$1 = new BlockRunner$maybeRun$1(this.this$0, continuation);
|
|
blockRunner$maybeRun$1.L$0 = obj;
|
|
return blockRunner$maybeRun$1;
|
|
}
|
|
|
|
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
|
|
@Override // kotlin.jvm.functions.Function2
|
|
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
|
|
return ((BlockRunner$maybeRun$1) create(coroutineScope, continuation)).invokeSuspend(Unit.a);
|
|
}
|
|
|
|
@Override // d0.w.i.a.a
|
|
public final Object invokeSuspend(Object obj) {
|
|
Object coroutine_suspended = c.getCOROUTINE_SUSPENDED();
|
|
int i = this.label;
|
|
if (i == 0) {
|
|
l.throwOnFailure(obj);
|
|
LiveDataScopeImpl liveDataScopeImpl = new LiveDataScopeImpl(BlockRunner.access$getLiveData$p(this.this$0), ((CoroutineScope) this.L$0).getCoroutineContext());
|
|
Function2 access$getBlock$p = BlockRunner.access$getBlock$p(this.this$0);
|
|
this.label = 1;
|
|
if (access$getBlock$p.invoke(liveDataScopeImpl, this) == coroutine_suspended) {
|
|
return coroutine_suspended;
|
|
}
|
|
} else if (i == 1) {
|
|
l.throwOnFailure(obj);
|
|
} else {
|
|
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
|
}
|
|
BlockRunner.access$getOnDone$p(this.this$0).mo1invoke();
|
|
return Unit.a;
|
|
}
|
|
}
|