- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
78 lines
3.0 KiB
Java
78 lines
3.0 KiB
Java
package androidx.core.view;
|
|
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import kotlin.ResultKt;
|
|
import kotlin.Unit;
|
|
import kotlin.coroutines.Continuation;
|
|
import kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsKt;
|
|
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
|
import kotlin.coroutines.jvm.internal.RestrictedSuspendLambda;
|
|
import kotlin.jvm.functions.Function2;
|
|
import kotlin.sequences.Sequence;
|
|
import kotlin.sequences.SequenceScope;
|
|
|
|
@DebugMetadata(c = "androidx.core.view.ViewKt$allViews$1", f = "View.kt", l = {410, 412}, m = "invokeSuspend")
|
|
/* loaded from: classes.dex */
|
|
public final class ViewKt$allViews$1 extends RestrictedSuspendLambda implements Function2 {
|
|
final /* synthetic */ View $this_allViews;
|
|
private /* synthetic */ Object L$0;
|
|
int label;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public ViewKt$allViews$1(View view, Continuation continuation) {
|
|
super(2, continuation);
|
|
this.$this_allViews = view;
|
|
}
|
|
|
|
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
|
public final Continuation create(Object obj, Continuation continuation) {
|
|
ViewKt$allViews$1 viewKt$allViews$1 = new ViewKt$allViews$1(this.$this_allViews, continuation);
|
|
viewKt$allViews$1.L$0 = obj;
|
|
return viewKt$allViews$1;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function2
|
|
public final Object invoke(SequenceScope sequenceScope, Continuation continuation) {
|
|
return ((ViewKt$allViews$1) create(sequenceScope, continuation)).invokeSuspend(Unit.INSTANCE);
|
|
}
|
|
|
|
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
|
public final Object invokeSuspend(Object obj) {
|
|
Object coroutine_suspended;
|
|
SequenceScope sequenceScope;
|
|
coroutine_suspended = IntrinsicsKt__IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
|
int i = this.label;
|
|
if (i == 0) {
|
|
ResultKt.throwOnFailure(obj);
|
|
sequenceScope = (SequenceScope) this.L$0;
|
|
View view = this.$this_allViews;
|
|
this.L$0 = sequenceScope;
|
|
this.label = 1;
|
|
if (sequenceScope.yield(view, this) == coroutine_suspended) {
|
|
return coroutine_suspended;
|
|
}
|
|
} else {
|
|
if (i != 1) {
|
|
if (i != 2) {
|
|
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
|
}
|
|
ResultKt.throwOnFailure(obj);
|
|
return Unit.INSTANCE;
|
|
}
|
|
sequenceScope = (SequenceScope) this.L$0;
|
|
ResultKt.throwOnFailure(obj);
|
|
}
|
|
View view2 = this.$this_allViews;
|
|
if (view2 instanceof ViewGroup) {
|
|
Sequence descendants = ViewGroupKt.getDescendants((ViewGroup) view2);
|
|
this.L$0 = null;
|
|
this.label = 2;
|
|
if (sequenceScope.yieldAll(descendants, this) == coroutine_suspended) {
|
|
return coroutine_suspended;
|
|
}
|
|
}
|
|
return Unit.INSTANCE;
|
|
}
|
|
}
|