mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-24 16:12:29 -06:00
61 lines
4 KiB
Java
61 lines
4 KiB
Java
package androidx.compose.animation;
|
|
|
|
import android.view.ViewConfiguration;
|
|
import androidx.compose.animation.core.DecayAnimationSpec;
|
|
import androidx.compose.animation.core.DecayAnimationSpecKt;
|
|
import androidx.compose.runtime.Composer;
|
|
import androidx.compose.runtime.ComposerKt;
|
|
import androidx.compose.runtime.ProvidableCompositionLocal;
|
|
import androidx.compose.ui.platform.CompositionLocalsKt;
|
|
import androidx.compose.ui.unit.Density;
|
|
import androidx.exifinterface.media.ExifInterface;
|
|
import kotlin.Deprecated;
|
|
import kotlin.DeprecationLevel;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: SplineBasedFloatDecayAnimationSpec.android.kt */
|
|
@Metadata(d1 = {"\u0000\u001a\n\u0000\n\u0002\u0010\u0007\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a\u0019\u0010\u0004\u001a\b\u0012\u0004\u0012\u0002H\u00060\u0005\"\u0004\b\u0000\u0010\u0006H\u0007¢\u0006\u0002\u0010\u0007\u001a!\u0010\b\u001a\b\u0012\u0004\u0012\u0002H\u00060\u0005\"\u0004\b\u0000\u0010\u00062\u0006\u0010\t\u001a\u00020\nH\u0007¢\u0006\u0002\b\u000b\"\u0014\u0010\u0000\u001a\u00020\u0001X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0002\u0010\u0003¨\u0006\f"}, d2 = {"platformFlingScrollFriction", "", "getPlatformFlingScrollFriction", "()F", "rememberSplineBasedDecay", "Landroidx/compose/animation/core/DecayAnimationSpec;", ExifInterface.GPS_DIRECTION_TRUE, "(Landroidx/compose/runtime/Composer;I)Landroidx/compose/animation/core/DecayAnimationSpec;", "splineBasedDecayDeprecated", "density", "Landroidx/compose/ui/unit/Density;", "splineBasedDecay", "animation_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final class SplineBasedFloatDecayAnimationSpec_androidKt {
|
|
private static final float platformFlingScrollFriction = ViewConfiguration.getScrollFriction();
|
|
|
|
public static final float getPlatformFlingScrollFriction() {
|
|
return platformFlingScrollFriction;
|
|
}
|
|
|
|
@Deprecated(level = DeprecationLevel.HIDDEN, message = "Moved to common code")
|
|
public static final /* synthetic */ DecayAnimationSpec splineBasedDecay(Density density) {
|
|
Intrinsics.checkNotNullParameter(density, "density");
|
|
return SplineBasedDecayKt.splineBasedDecay(density);
|
|
}
|
|
|
|
public static final <T> DecayAnimationSpec<T> rememberSplineBasedDecay(Composer composer, int i) {
|
|
composer.startReplaceableGroup(904445851);
|
|
ComposerKt.sourceInformation(composer, "C(rememberSplineBasedDecay)43@1746L7,44@1765L114:SplineBasedFloatDecayAnimationSpec.android.kt#xbi5r1");
|
|
if (ComposerKt.isTraceInProgress()) {
|
|
ComposerKt.traceEventStart(904445851, i, -1, "androidx.compose.animation.rememberSplineBasedDecay (SplineBasedFloatDecayAnimationSpec.android.kt:40)");
|
|
}
|
|
ProvidableCompositionLocal<Density> localDensity = CompositionLocalsKt.getLocalDensity();
|
|
ComposerKt.sourceInformationMarkerStart(composer, 2023513938, "CC:CompositionLocal.kt#9igjgp");
|
|
Object consume = composer.consume(localDensity);
|
|
ComposerKt.sourceInformationMarkerEnd(composer);
|
|
Density density = (Density) consume;
|
|
Float valueOf = Float.valueOf(density.getDensity());
|
|
composer.startReplaceableGroup(1157296644);
|
|
ComposerKt.sourceInformation(composer, "CC(remember)P(1):Composables.kt#9igjgp");
|
|
boolean changed = composer.changed(valueOf);
|
|
Object rememberedValue = composer.rememberedValue();
|
|
if (changed || rememberedValue == Composer.INSTANCE.getEmpty()) {
|
|
rememberedValue = DecayAnimationSpecKt.generateDecayAnimationSpec(new SplineBasedFloatDecayAnimationSpec(density));
|
|
composer.updateRememberedValue(rememberedValue);
|
|
}
|
|
composer.endReplaceableGroup();
|
|
DecayAnimationSpec<T> decayAnimationSpec = (DecayAnimationSpec) rememberedValue;
|
|
if (ComposerKt.isTraceInProgress()) {
|
|
ComposerKt.traceEventEnd();
|
|
}
|
|
composer.endReplaceableGroup();
|
|
return decayAnimationSpec;
|
|
}
|
|
}
|