mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-30 11:02:31 -06:00
59 lines
3.6 KiB
Java
59 lines
3.6 KiB
Java
package androidx.compose.foundation.gestures;
|
|
|
|
import androidx.compose.runtime.Composer;
|
|
import androidx.compose.runtime.ComposerKt;
|
|
import androidx.compose.runtime.SnapshotStateKt;
|
|
import androidx.compose.runtime.State;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: ScrollableState.kt */
|
|
@Metadata(d1 = {"\u0000\u0014\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0007\n\u0002\b\u0003\u001a\u001a\u0010\u0000\u001a\u00020\u00012\u0012\u0010\u0002\u001a\u000e\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u00040\u0003\u001a!\u0010\u0005\u001a\u00020\u00012\u0012\u0010\u0002\u001a\u000e\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u00040\u0003H\u0007¢\u0006\u0002\u0010\u0006¨\u0006\u0007"}, d2 = {"ScrollableState", "Landroidx/compose/foundation/gestures/ScrollableState;", "consumeScrollDelta", "Lkotlin/Function1;", "", "rememberScrollableState", "(Lkotlin/jvm/functions/Function1;Landroidx/compose/runtime/Composer;I)Landroidx/compose/foundation/gestures/ScrollableState;", "foundation_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final class ScrollableStateKt {
|
|
public static final ScrollableState ScrollableState(Function1<? super Float, Float> consumeScrollDelta) {
|
|
Intrinsics.checkNotNullParameter(consumeScrollDelta, "consumeScrollDelta");
|
|
return new DefaultScrollableState(consumeScrollDelta);
|
|
}
|
|
|
|
public static final ScrollableState rememberScrollableState(Function1<? super Float, Float> consumeScrollDelta, Composer composer, int i) {
|
|
Intrinsics.checkNotNullParameter(consumeScrollDelta, "consumeScrollDelta");
|
|
composer.startReplaceableGroup(-180460798);
|
|
ComposerKt.sourceInformation(composer, "C(rememberScrollableState)144@6897L40,145@6949L61:ScrollableState.kt#8bwon0");
|
|
if (ComposerKt.isTraceInProgress()) {
|
|
ComposerKt.traceEventStart(-180460798, i, -1, "androidx.compose.foundation.gestures.rememberScrollableState (ScrollableState.kt:143)");
|
|
}
|
|
final State rememberUpdatedState = SnapshotStateKt.rememberUpdatedState(consumeScrollDelta, composer, i & 14);
|
|
composer.startReplaceableGroup(-492369756);
|
|
ComposerKt.sourceInformation(composer, "CC(remember):Composables.kt#9igjgp");
|
|
Object rememberedValue = composer.rememberedValue();
|
|
if (rememberedValue == Composer.INSTANCE.getEmpty()) {
|
|
rememberedValue = ScrollableState(new Function1<Float, Float>() { // from class: androidx.compose.foundation.gestures.ScrollableStateKt$rememberScrollableState$1$1
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
{
|
|
super(1);
|
|
}
|
|
|
|
public final Float invoke(float f) {
|
|
return rememberUpdatedState.getValue().invoke(Float.valueOf(f));
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Float invoke(Float f) {
|
|
return invoke(f.floatValue());
|
|
}
|
|
});
|
|
composer.updateRememberedValue(rememberedValue);
|
|
}
|
|
composer.endReplaceableGroup();
|
|
ScrollableState scrollableState = (ScrollableState) rememberedValue;
|
|
if (ComposerKt.isTraceInProgress()) {
|
|
ComposerKt.traceEventEnd();
|
|
}
|
|
composer.endReplaceableGroup();
|
|
return scrollableState;
|
|
}
|
|
}
|