alexandroid/decompiled/jadx/sources/androidx/compose/material3/internal/AnchoredDraggableKt$snapTo$2.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

63 lines
3.5 KiB
Java

package androidx.compose.material3.internal;
import androidx.exifinterface.media.ExifInterface;
import kotlin.Metadata;
import kotlin.ResultKt;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.intrinsics.IntrinsicsKt;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.coroutines.jvm.internal.SuspendLambda;
import kotlin.jvm.functions.Function4;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import rx.Single$$ExternalSyntheticBUOutline0;
/* JADX INFO: Add missing generic type declarations: [T] */
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
@Metadata(d1 = {"\u0000\u0014\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001\"\u0004\b\u0000\u0010\u0002*\u00020\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u0002H\u00020\u00052\u0006\u0010\u0006\u001a\u0002H\u0002H\u008a@"}, d2 = {"<anonymous>", "", ExifInterface.GPS_DIRECTION_TRUE, "Landroidx/compose/material3/internal/AnchoredDragScope;", "anchors", "Landroidx/compose/material3/internal/DraggableAnchors;", "latestTarget"}, k = 3, mv = {1, 8, 0}, xi = 48)
@DebugMetadata(c = "androidx.compose.material3.internal.AnchoredDraggableKt$snapTo$2", f = "AnchoredDraggable.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
/* loaded from: classes13.dex */
public final class AnchoredDraggableKt$snapTo$2<T> extends SuspendLambda implements Function4<AnchoredDragScope, DraggableAnchors<T>, T, Continuation<? super Unit>, Object> {
private /* synthetic */ Object L$0;
/* synthetic */ Object L$1;
/* synthetic */ Object L$2;
int label;
public AnchoredDraggableKt$snapTo$2(Continuation<? super AnchoredDraggableKt$snapTo$2> continuation) {
super(4, continuation);
}
@Nullable
public final Object invoke(@NotNull AnchoredDragScope anchoredDragScope, @NotNull DraggableAnchors<T> draggableAnchors, T t, @Nullable Continuation<? super Unit> continuation) {
AnchoredDraggableKt$snapTo$2 anchoredDraggableKt$snapTo$2 = new AnchoredDraggableKt$snapTo$2(continuation);
anchoredDraggableKt$snapTo$2.L$0 = anchoredDragScope;
anchoredDraggableKt$snapTo$2.L$1 = draggableAnchors;
anchoredDraggableKt$snapTo$2.L$2 = t;
return anchoredDraggableKt$snapTo$2.invokeSuspend(Unit.INSTANCE);
}
/* JADX WARN: Multi-variable type inference failed */
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
@Nullable
public final Object invokeSuspend(@NotNull Object obj) {
IntrinsicsKt.getCOROUTINE_SUSPENDED();
if (this.label != 0) {
Single$$ExternalSyntheticBUOutline0.m$2("call to 'resume' before 'invoke' with coroutine");
return null;
}
ResultKt.throwOnFailure(obj);
AnchoredDragScope anchoredDragScope = (AnchoredDragScope) this.L$0;
float positionOf = ((DraggableAnchors) this.L$1).positionOf(this.L$2);
if (!Float.isNaN(positionOf)) {
AnchoredDragScope.dragTo$default(anchoredDragScope, positionOf, 0.0f, 2, null);
}
return Unit.INSTANCE;
}
/* JADX WARN: Multi-variable type inference failed */
@Override // kotlin.jvm.functions.Function4
public /* bridge */ /* synthetic */ Object invoke(AnchoredDragScope anchoredDragScope, Object obj, Object obj2, Continuation<? super Unit> continuation) {
return invoke(anchoredDragScope, (DraggableAnchors<DraggableAnchors<T>>) obj, (DraggableAnchors<T>) obj2, continuation);
}
}