2021-07-24 02:37:17 +00:00
|
|
|
package androidx.lifecycle;
|
|
|
|
|
2021-11-01 07:19:03 +00:00
|
|
|
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;
|
2021-07-24 02:37:17 +00:00
|
|
|
import kotlin.Unit;
|
|
|
|
import kotlin.coroutines.Continuation;
|
|
|
|
import kotlin.jvm.functions.Function2;
|
|
|
|
import kotlinx.coroutines.CoroutineScope;
|
2021-12-17 22:01:24 +00:00
|
|
|
import s.a.m0;
|
2021-07-24 02:37:17 +00:00
|
|
|
/* compiled from: CoroutineLiveData.kt */
|
|
|
|
@e(c = "androidx.lifecycle.LiveDataScopeImpl$emitSource$2", f = "CoroutineLiveData.kt", l = {94}, m = "invokeSuspend")
|
2021-12-17 22:01:24 +00:00
|
|
|
public final class LiveDataScopeImpl$emitSource$2 extends k implements Function2<CoroutineScope, Continuation<? super m0>, Object> {
|
2021-07-24 02:37:17 +00:00
|
|
|
public final /* synthetic */ LiveData $source;
|
|
|
|
public int label;
|
|
|
|
public final /* synthetic */ LiveDataScopeImpl this$0;
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public LiveDataScopeImpl$emitSource$2(LiveDataScopeImpl liveDataScopeImpl, LiveData liveData, Continuation continuation) {
|
|
|
|
super(2, continuation);
|
|
|
|
this.this$0 = liveDataScopeImpl;
|
|
|
|
this.$source = liveData;
|
|
|
|
}
|
|
|
|
|
2021-11-01 07:19:03 +00:00
|
|
|
@Override // d0.w.i.a.a
|
2021-07-24 02:37:17 +00:00
|
|
|
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
|
|
|
m.checkNotNullParameter(continuation, "completion");
|
|
|
|
return new LiveDataScopeImpl$emitSource$2(this.this$0, this.$source, continuation);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
|
|
|
|
@Override // kotlin.jvm.functions.Function2
|
2021-12-17 22:01:24 +00:00
|
|
|
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super m0> continuation) {
|
2021-07-24 02:37:17 +00:00
|
|
|
return ((LiveDataScopeImpl$emitSource$2) create(coroutineScope, continuation)).invokeSuspend(Unit.a);
|
|
|
|
}
|
|
|
|
|
2021-11-01 07:19:03 +00:00
|
|
|
@Override // d0.w.i.a.a
|
2021-07-24 02:37:17 +00:00
|
|
|
public final Object invokeSuspend(Object obj) {
|
|
|
|
Object coroutine_suspended = c.getCOROUTINE_SUSPENDED();
|
|
|
|
int i = this.label;
|
|
|
|
if (i == 0) {
|
|
|
|
l.throwOnFailure(obj);
|
|
|
|
CoroutineLiveData target$lifecycle_livedata_ktx_release = this.this$0.getTarget$lifecycle_livedata_ktx_release();
|
|
|
|
LiveData liveData = this.$source;
|
|
|
|
this.label = 1;
|
|
|
|
obj = target$lifecycle_livedata_ktx_release.emitSource$lifecycle_livedata_ktx_release(liveData, this);
|
|
|
|
if (obj == coroutine_suspended) {
|
|
|
|
return coroutine_suspended;
|
|
|
|
}
|
|
|
|
} else if (i == 1) {
|
|
|
|
l.throwOnFailure(obj);
|
|
|
|
} else {
|
|
|
|
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
|
|
|
}
|
|
|
|
return obj;
|
|
|
|
}
|
|
|
|
}
|