64 lines
2.9 KiB
Java
64 lines
2.9 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.CoroutineLiveDataKt$addDisposableSource$2", f = "CoroutineLiveData.kt", l = {}, m = "invokeSuspend")
|
|
public final class CoroutineLiveDataKt$addDisposableSource$2 extends k implements Function2<CoroutineScope, Continuation<? super EmittedSource>, Object> {
|
|
public final /* synthetic */ LiveData $source;
|
|
public final /* synthetic */ MediatorLiveData $this_addDisposableSource;
|
|
public int label;
|
|
|
|
/* compiled from: CoroutineLiveData.kt */
|
|
/* renamed from: androidx.lifecycle.CoroutineLiveDataKt$addDisposableSource$2$1 reason: invalid class name */
|
|
public static final class AnonymousClass1<T> implements Observer<T> {
|
|
public final /* synthetic */ CoroutineLiveDataKt$addDisposableSource$2 this$0;
|
|
|
|
public AnonymousClass1(CoroutineLiveDataKt$addDisposableSource$2 coroutineLiveDataKt$addDisposableSource$2) {
|
|
this.this$0 = coroutineLiveDataKt$addDisposableSource$2;
|
|
}
|
|
|
|
@Override // androidx.lifecycle.Observer
|
|
public final void onChanged(T t) {
|
|
this.this$0.$this_addDisposableSource.setValue(t);
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public CoroutineLiveDataKt$addDisposableSource$2(MediatorLiveData mediatorLiveData, LiveData liveData, Continuation continuation) {
|
|
super(2, continuation);
|
|
this.$this_addDisposableSource = mediatorLiveData;
|
|
this.$source = liveData;
|
|
}
|
|
|
|
@Override // d0.w.i.a.a
|
|
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
|
m.checkNotNullParameter(continuation, "completion");
|
|
return new CoroutineLiveDataKt$addDisposableSource$2(this.$this_addDisposableSource, 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
|
|
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super EmittedSource> continuation) {
|
|
return ((CoroutineLiveDataKt$addDisposableSource$2) create(coroutineScope, continuation)).invokeSuspend(Unit.a);
|
|
}
|
|
|
|
@Override // d0.w.i.a.a
|
|
public final Object invokeSuspend(Object obj) {
|
|
c.getCOROUTINE_SUSPENDED();
|
|
if (this.label == 0) {
|
|
l.throwOnFailure(obj);
|
|
this.$this_addDisposableSource.addSource(this.$source, new AnonymousClass1(this));
|
|
return new EmittedSource(this.$source, this.$this_addDisposableSource);
|
|
}
|
|
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
|
}
|
|
}
|