mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
71 lines
4.7 KiB
Java
71 lines
4.7 KiB
Java
|
package androidx.compose.foundation.lazy.grid;
|
||
|
|
||
|
import androidx.compose.foundation.gestures.ScrollExtensionsKt;
|
||
|
import androidx.compose.foundation.lazy.layout.LazyLayoutSemanticState;
|
||
|
import androidx.compose.runtime.Composer;
|
||
|
import androidx.compose.runtime.ComposerKt;
|
||
|
import androidx.compose.ui.semantics.CollectionInfo;
|
||
|
import io.sentry.protocol.SentryThread;
|
||
|
import kotlin.Metadata;
|
||
|
import kotlin.Unit;
|
||
|
import kotlin.coroutines.Continuation;
|
||
|
import kotlin.coroutines.intrinsics.IntrinsicsKt;
|
||
|
import kotlin.jvm.internal.Intrinsics;
|
||
|
|
||
|
/* compiled from: LazySemantics.kt */
|
||
|
@Metadata(d1 = {"\u0000\u0016\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\u001a\u001d\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0005H\u0001¢\u0006\u0002\u0010\u0006¨\u0006\u0007"}, d2 = {"rememberLazyGridSemanticState", "Landroidx/compose/foundation/lazy/layout/LazyLayoutSemanticState;", SentryThread.JsonKeys.STATE, "Landroidx/compose/foundation/lazy/grid/LazyGridState;", "reverseScrolling", "", "(Landroidx/compose/foundation/lazy/grid/LazyGridState;ZLandroidx/compose/runtime/Composer;I)Landroidx/compose/foundation/lazy/layout/LazyLayoutSemanticState;", "foundation_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class LazySemanticsKt {
|
||
|
public static final LazyLayoutSemanticState rememberLazyGridSemanticState(final LazyGridState state, boolean z, Composer composer, int i) {
|
||
|
Intrinsics.checkNotNullParameter(state, "state");
|
||
|
composer.startReplaceableGroup(-1247008005);
|
||
|
ComposerKt.sourceInformation(composer, "C(rememberLazyGridSemanticState)P(1)31@1179L806:LazySemantics.kt#7791vq");
|
||
|
if (ComposerKt.isTraceInProgress()) {
|
||
|
ComposerKt.traceEventStart(-1247008005, i, -1, "androidx.compose.foundation.lazy.grid.rememberLazyGridSemanticState (LazySemantics.kt:27)");
|
||
|
}
|
||
|
Boolean valueOf = Boolean.valueOf(z);
|
||
|
composer.startReplaceableGroup(511388516);
|
||
|
ComposerKt.sourceInformation(composer, "CC(remember)P(1,2):Composables.kt#9igjgp");
|
||
|
boolean changed = composer.changed(valueOf) | composer.changed(state);
|
||
|
Object rememberedValue = composer.rememberedValue();
|
||
|
if (changed || rememberedValue == Composer.INSTANCE.getEmpty()) {
|
||
|
rememberedValue = new LazyLayoutSemanticState() { // from class: androidx.compose.foundation.lazy.grid.LazySemanticsKt$rememberLazyGridSemanticState$1$1
|
||
|
@Override // androidx.compose.foundation.lazy.layout.LazyLayoutSemanticState
|
||
|
public float getCurrentPosition() {
|
||
|
return LazyGridState.this.getFirstVisibleItemIndex() + (LazyGridState.this.getFirstVisibleItemScrollOffset() / 100000.0f);
|
||
|
}
|
||
|
|
||
|
@Override // androidx.compose.foundation.lazy.layout.LazyLayoutSemanticState
|
||
|
public boolean getCanScrollForward() {
|
||
|
return LazyGridState.this.getCanScrollForward();
|
||
|
}
|
||
|
|
||
|
@Override // androidx.compose.foundation.lazy.layout.LazyLayoutSemanticState
|
||
|
public Object animateScrollBy(float f, Continuation<? super Unit> continuation) {
|
||
|
Object animateScrollBy$default = ScrollExtensionsKt.animateScrollBy$default(LazyGridState.this, f, null, continuation, 2, null);
|
||
|
return animateScrollBy$default == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? animateScrollBy$default : Unit.INSTANCE;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.compose.foundation.lazy.layout.LazyLayoutSemanticState
|
||
|
public Object scrollToItem(int i2, Continuation<? super Unit> continuation) {
|
||
|
Object scrollToItem$default = LazyGridState.scrollToItem$default(LazyGridState.this, i2, 0, continuation, 2, null);
|
||
|
return scrollToItem$default == IntrinsicsKt.getCOROUTINE_SUSPENDED() ? scrollToItem$default : Unit.INSTANCE;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.compose.foundation.lazy.layout.LazyLayoutSemanticState
|
||
|
public CollectionInfo collectionInfo() {
|
||
|
return new CollectionInfo(-1, -1);
|
||
|
}
|
||
|
};
|
||
|
composer.updateRememberedValue(rememberedValue);
|
||
|
}
|
||
|
composer.endReplaceableGroup();
|
||
|
LazySemanticsKt$rememberLazyGridSemanticState$1$1 lazySemanticsKt$rememberLazyGridSemanticState$1$1 = (LazySemanticsKt$rememberLazyGridSemanticState$1$1) rememberedValue;
|
||
|
if (ComposerKt.isTraceInProgress()) {
|
||
|
ComposerKt.traceEventEnd();
|
||
|
}
|
||
|
composer.endReplaceableGroup();
|
||
|
return lazySemanticsKt$rememberLazyGridSemanticState$1$1;
|
||
|
}
|
||
|
}
|