mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-17 03:17:17 +01:00
54 lines
3.2 KiB
Java
54 lines
3.2 KiB
Java
package androidx.compose.ui.platform;
|
|
|
|
import androidx.compose.runtime.MutableFloatState;
|
|
import androidx.compose.runtime.PrimitiveSnapshotStateKt;
|
|
import androidx.compose.ui.MotionDurationScale;
|
|
import kotlin.Metadata;
|
|
import kotlin.coroutines.CoroutineContext;
|
|
import kotlin.jvm.functions.Function2;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0007\n\u0002\b\b\b\u0002\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003R+\u0010\u0006\u001a\u00020\u00052\u0006\u0010\u0004\u001a\u00020\u00058V@VX\u0096\u008e\u0002¢\u0006\u0012\n\u0004\b\u000b\u0010\f\u001a\u0004\b\u0007\u0010\b\"\u0004\b\t\u0010\n¨\u0006\r"}, d2 = {"Landroidx/compose/ui/platform/MotionDurationScaleImpl;", "Landroidx/compose/ui/MotionDurationScale;", "<init>", "()V", "<set-?>", "", "scaleFactor", "getScaleFactor", "()F", "setScaleFactor", "(F)V", "scaleFactor$delegate", "Landroidx/compose/runtime/MutableFloatState;", "ui_release"}, k = 1, mv = {2, 0, 0}, xi = 48)
|
|
@SourceDebugExtension({"SMAP\nWindowRecomposer.android.kt\nKotlin\n*S Kotlin\n*F\n+ 1 WindowRecomposer.android.kt\nandroidx/compose/ui/platform/MotionDurationScaleImpl\n+ 2 SnapshotFloatState.kt\nandroidx/compose/runtime/PrimitiveSnapshotStateKt__SnapshotFloatStateKt\n*L\n1#1,436:1\n81#2:437\n114#2,2:438\n*S KotlinDebug\n*F\n+ 1 WindowRecomposer.android.kt\nandroidx/compose/ui/platform/MotionDurationScaleImpl\n*L\n434#1:437\n434#1:438,2\n*E\n"})
|
|
/* loaded from: classes13.dex */
|
|
final class MotionDurationScaleImpl implements MotionDurationScale {
|
|
|
|
/* renamed from: scaleFactor$delegate, reason: from kotlin metadata */
|
|
@NotNull
|
|
private final MutableFloatState scaleFactor = PrimitiveSnapshotStateKt.mutableFloatStateOf(1.0f);
|
|
|
|
@Override // kotlin.coroutines.CoroutineContext.Element, kotlin.coroutines.CoroutineContext
|
|
public <R> R fold(R r, @NotNull Function2<? super R, ? super CoroutineContext.Element, ? extends R> function2) {
|
|
return (R) MotionDurationScale.DefaultImpls.fold(this, r, function2);
|
|
}
|
|
|
|
@Override // kotlin.coroutines.CoroutineContext.Element, kotlin.coroutines.CoroutineContext
|
|
@Nullable
|
|
public <E extends CoroutineContext.Element> E get(@NotNull CoroutineContext.Key<E> key) {
|
|
return (E) MotionDurationScale.DefaultImpls.get(this, key);
|
|
}
|
|
|
|
@Override // androidx.compose.ui.MotionDurationScale
|
|
public float getScaleFactor() {
|
|
return this.scaleFactor.getFloatValue();
|
|
}
|
|
|
|
@Override // kotlin.coroutines.CoroutineContext.Element, kotlin.coroutines.CoroutineContext
|
|
@NotNull
|
|
public CoroutineContext minusKey(@NotNull CoroutineContext.Key<?> key) {
|
|
return MotionDurationScale.DefaultImpls.minusKey(this, key);
|
|
}
|
|
|
|
@Override // kotlin.coroutines.CoroutineContext
|
|
@NotNull
|
|
public CoroutineContext plus(@NotNull CoroutineContext coroutineContext) {
|
|
return MotionDurationScale.DefaultImpls.plus(this, coroutineContext);
|
|
}
|
|
|
|
public void setScaleFactor(float f) {
|
|
this.scaleFactor.setFloatValue(f);
|
|
}
|
|
}
|