mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-28 18:12:31 -06:00
153 lines
9 KiB
Java
153 lines
9 KiB
Java
package androidx.compose.foundation.layout;
|
|
|
|
import android.view.WindowInsetsAnimationController;
|
|
import androidx.compose.animation.core.Animatable;
|
|
import androidx.compose.animation.core.AnimatableKt;
|
|
import androidx.compose.animation.core.AnimationVector1D;
|
|
import kotlin.Metadata;
|
|
import kotlin.ResultKt;
|
|
import kotlin.Unit;
|
|
import kotlin.coroutines.Continuation;
|
|
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
|
import kotlin.coroutines.jvm.internal.Boxing;
|
|
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
|
import kotlin.coroutines.jvm.internal.SuspendLambda;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.functions.Function2;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlinx.coroutines.BuildersKt__Builders_commonKt;
|
|
import kotlinx.coroutines.CoroutineScope;
|
|
import kotlinx.coroutines.Job;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* compiled from: WindowInsetsConnection.android.kt */
|
|
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\u008a@"}, d2 = {"<anonymous>", "", "Lkotlinx/coroutines/CoroutineScope;"}, k = 3, mv = {1, 8, 0}, xi = 48)
|
|
@DebugMetadata(c = "androidx.compose.foundation.layout.WindowInsetsNestedScrollConnection$fling$3", f = "WindowInsetsConnection.android.kt", i = {}, l = {}, m = "invokeSuspend", n = {}, s = {})
|
|
/* loaded from: classes.dex */
|
|
public final class WindowInsetsNestedScrollConnection$fling$3 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
|
|
final /* synthetic */ WindowInsetsAnimationController $animationController;
|
|
final /* synthetic */ int $current;
|
|
final /* synthetic */ float $flingAmount;
|
|
final /* synthetic */ int $target;
|
|
final /* synthetic */ boolean $targetShown;
|
|
private /* synthetic */ Object L$0;
|
|
int label;
|
|
final /* synthetic */ WindowInsetsNestedScrollConnection this$0;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public WindowInsetsNestedScrollConnection$fling$3(WindowInsetsNestedScrollConnection windowInsetsNestedScrollConnection, int i, int i2, float f, WindowInsetsAnimationController windowInsetsAnimationController, boolean z, Continuation<? super WindowInsetsNestedScrollConnection$fling$3> continuation) {
|
|
super(2, continuation);
|
|
this.this$0 = windowInsetsNestedScrollConnection;
|
|
this.$current = i;
|
|
this.$target = i2;
|
|
this.$flingAmount = f;
|
|
this.$animationController = windowInsetsAnimationController;
|
|
this.$targetShown = z;
|
|
}
|
|
|
|
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
|
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
|
WindowInsetsNestedScrollConnection$fling$3 windowInsetsNestedScrollConnection$fling$3 = new WindowInsetsNestedScrollConnection$fling$3(this.this$0, this.$current, this.$target, this.$flingAmount, this.$animationController, this.$targetShown, continuation);
|
|
windowInsetsNestedScrollConnection$fling$3.L$0 = obj;
|
|
return windowInsetsNestedScrollConnection$fling$3;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function2
|
|
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
|
|
return ((WindowInsetsNestedScrollConnection$fling$3) create(coroutineScope, continuation)).invokeSuspend(Unit.INSTANCE);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* compiled from: WindowInsetsConnection.android.kt */
|
|
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\u008a@"}, d2 = {"<anonymous>", "", "Lkotlinx/coroutines/CoroutineScope;"}, k = 3, mv = {1, 8, 0}, xi = 48)
|
|
@DebugMetadata(c = "androidx.compose.foundation.layout.WindowInsetsNestedScrollConnection$fling$3$1", f = "WindowInsetsConnection.android.kt", i = {}, l = {374}, m = "invokeSuspend", n = {}, s = {})
|
|
/* renamed from: androidx.compose.foundation.layout.WindowInsetsNestedScrollConnection$fling$3$1, reason: invalid class name */
|
|
/* loaded from: classes.dex */
|
|
public static final class AnonymousClass1 extends SuspendLambda implements Function2<CoroutineScope, Continuation<? super Unit>, Object> {
|
|
final /* synthetic */ WindowInsetsAnimationController $animationController;
|
|
final /* synthetic */ int $current;
|
|
final /* synthetic */ float $flingAmount;
|
|
final /* synthetic */ int $target;
|
|
final /* synthetic */ boolean $targetShown;
|
|
int label;
|
|
final /* synthetic */ WindowInsetsNestedScrollConnection this$0;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
AnonymousClass1(int i, int i2, float f, WindowInsetsAnimationController windowInsetsAnimationController, boolean z, WindowInsetsNestedScrollConnection windowInsetsNestedScrollConnection, Continuation<? super AnonymousClass1> continuation) {
|
|
super(2, continuation);
|
|
this.$current = i;
|
|
this.$target = i2;
|
|
this.$flingAmount = f;
|
|
this.$animationController = windowInsetsAnimationController;
|
|
this.$targetShown = z;
|
|
this.this$0 = windowInsetsNestedScrollConnection;
|
|
}
|
|
|
|
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
|
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
|
return new AnonymousClass1(this.$current, this.$target, this.$flingAmount, this.$animationController, this.$targetShown, this.this$0, continuation);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function2
|
|
public final Object invoke(CoroutineScope coroutineScope, Continuation<? super Unit> continuation) {
|
|
return ((AnonymousClass1) create(coroutineScope, continuation)).invokeSuspend(Unit.INSTANCE);
|
|
}
|
|
|
|
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
|
public final Object invokeSuspend(Object obj) {
|
|
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
|
int i = this.label;
|
|
if (i == 0) {
|
|
ResultKt.throwOnFailure(obj);
|
|
Animatable Animatable$default = AnimatableKt.Animatable$default(this.$current, 0.0f, 2, null);
|
|
Float boxFloat = Boxing.boxFloat(this.$target);
|
|
Float boxFloat2 = Boxing.boxFloat(this.$flingAmount);
|
|
final WindowInsetsNestedScrollConnection windowInsetsNestedScrollConnection = this.this$0;
|
|
this.label = 1;
|
|
if (Animatable.animateTo$default(Animatable$default, boxFloat, null, boxFloat2, new Function1<Animatable<Float, AnimationVector1D>, Unit>() { // from class: androidx.compose.foundation.layout.WindowInsetsNestedScrollConnection.fling.3.1.1
|
|
{
|
|
super(1);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Unit invoke(Animatable<Float, AnimationVector1D> animatable) {
|
|
invoke2(animatable);
|
|
return Unit.INSTANCE;
|
|
}
|
|
|
|
/* renamed from: invoke, reason: avoid collision after fix types in other method */
|
|
public final void invoke2(Animatable<Float, AnimationVector1D> animateTo) {
|
|
Intrinsics.checkNotNullParameter(animateTo, "$this$animateTo");
|
|
WindowInsetsNestedScrollConnection.this.adjustInsets(animateTo.getValue().floatValue());
|
|
}
|
|
}, this, 2, null) == coroutine_suspended) {
|
|
return coroutine_suspended;
|
|
}
|
|
} else {
|
|
if (i != 1) {
|
|
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
|
}
|
|
ResultKt.throwOnFailure(obj);
|
|
}
|
|
this.$animationController.finish(this.$targetShown);
|
|
this.this$0.animationController = null;
|
|
return Unit.INSTANCE;
|
|
}
|
|
}
|
|
|
|
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
|
public final Object invokeSuspend(Object obj) {
|
|
Job launch$default;
|
|
IntrinsicsKt.getCOROUTINE_SUSPENDED();
|
|
if (this.label == 0) {
|
|
ResultKt.throwOnFailure(obj);
|
|
CoroutineScope coroutineScope = (CoroutineScope) this.L$0;
|
|
WindowInsetsNestedScrollConnection windowInsetsNestedScrollConnection = this.this$0;
|
|
launch$default = BuildersKt__Builders_commonKt.launch$default(coroutineScope, null, null, new AnonymousClass1(this.$current, this.$target, this.$flingAmount, this.$animationController, this.$targetShown, this.this$0, null), 3, null);
|
|
windowInsetsNestedScrollConnection.animationJob = launch$default;
|
|
return Unit.INSTANCE;
|
|
}
|
|
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
|
|
}
|
|
}
|