mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-30 11:02:31 -06:00
78 lines
5.7 KiB
Java
78 lines
5.7 KiB
Java
|
package androidx.compose.material3;
|
||
|
|
||
|
import androidx.compose.animation.core.AnimationSpec;
|
||
|
import androidx.compose.animation.core.DecayAnimationSpec;
|
||
|
import androidx.compose.ui.input.nestedscroll.NestedScrollConnection;
|
||
|
import io.sentry.protocol.SentryThread;
|
||
|
import kotlin.Metadata;
|
||
|
import kotlin.jvm.functions.Function0;
|
||
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||
|
import kotlin.jvm.internal.Intrinsics;
|
||
|
|
||
|
/* compiled from: AppBar.kt */
|
||
|
@Metadata(d1 = {"\u00004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0007\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\t\b\u0002\u0018\u00002\u00020\u0001B=\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u000e\u0010\u0004\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005\u0012\u000e\u0010\u0007\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\b\u0012\u000e\b\u0002\u0010\t\u001a\b\u0012\u0004\u0012\u00020\u000b0\n¢\u0006\u0002\u0010\fR\u0017\u0010\t\u001a\b\u0012\u0004\u0012\u00020\u000b0\n¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\u000eR\u001c\u0010\u0007\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\bX\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u000f\u0010\u0010R\u0014\u0010\u0011\u001a\u00020\u000bX\u0096D¢\u0006\b\n\u0000\u001a\u0004\b\u0011\u0010\u0012R\u001a\u0010\u0013\u001a\u00020\u0014X\u0096\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0015\u0010\u0016\"\u0004\b\u0017\u0010\u0018R\u001c\u0010\u0004\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0019\u0010\u001aR\u0014\u0010\u0002\u001a\u00020\u0003X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u001b\u0010\u001c¨\u0006\u001d"}, d2 = {"Landroidx/compose/material3/EnterAlwaysScrollBehavior;", "Landroidx/compose/material3/TopAppBarScrollBehavior;", SentryThread.JsonKeys.STATE, "Landroidx/compose/material3/TopAppBarState;", "snapAnimationSpec", "Landroidx/compose/animation/core/AnimationSpec;", "", "flingAnimationSpec", "Landroidx/compose/animation/core/DecayAnimationSpec;", "canScroll", "Lkotlin/Function0;", "", "(Landroidx/compose/material3/TopAppBarState;Landroidx/compose/animation/core/AnimationSpec;Landroidx/compose/animation/core/DecayAnimationSpec;Lkotlin/jvm/functions/Function0;)V", "getCanScroll", "()Lkotlin/jvm/functions/Function0;", "getFlingAnimationSpec", "()Landroidx/compose/animation/core/DecayAnimationSpec;", "isPinned", "()Z", "nestedScrollConnection", "Landroidx/compose/ui/input/nestedscroll/NestedScrollConnection;", "getNestedScrollConnection", "()Landroidx/compose/ui/input/nestedscroll/NestedScrollConnection;", "setNestedScrollConnection", "(Landroidx/compose/ui/input/nestedscroll/NestedScrollConnection;)V", "getSnapAnimationSpec", "()Landroidx/compose/animation/core/AnimationSpec;", "getState", "()Landroidx/compose/material3/TopAppBarState;", "material3_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||
|
/* loaded from: classes.dex */
|
||
|
final class EnterAlwaysScrollBehavior implements TopAppBarScrollBehavior {
|
||
|
private final Function0<Boolean> canScroll;
|
||
|
private final DecayAnimationSpec<Float> flingAnimationSpec;
|
||
|
private final boolean isPinned;
|
||
|
private NestedScrollConnection nestedScrollConnection;
|
||
|
private final AnimationSpec<Float> snapAnimationSpec;
|
||
|
private final TopAppBarState state;
|
||
|
|
||
|
public final Function0<Boolean> getCanScroll() {
|
||
|
return this.canScroll;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.compose.material3.TopAppBarScrollBehavior
|
||
|
public DecayAnimationSpec<Float> getFlingAnimationSpec() {
|
||
|
return this.flingAnimationSpec;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.compose.material3.TopAppBarScrollBehavior
|
||
|
public NestedScrollConnection getNestedScrollConnection() {
|
||
|
return this.nestedScrollConnection;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.compose.material3.TopAppBarScrollBehavior
|
||
|
public AnimationSpec<Float> getSnapAnimationSpec() {
|
||
|
return this.snapAnimationSpec;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.compose.material3.TopAppBarScrollBehavior
|
||
|
public TopAppBarState getState() {
|
||
|
return this.state;
|
||
|
}
|
||
|
|
||
|
@Override // androidx.compose.material3.TopAppBarScrollBehavior
|
||
|
/* renamed from: isPinned, reason: from getter */
|
||
|
public boolean getIsPinned() {
|
||
|
return this.isPinned;
|
||
|
}
|
||
|
|
||
|
public void setNestedScrollConnection(NestedScrollConnection nestedScrollConnection) {
|
||
|
Intrinsics.checkNotNullParameter(nestedScrollConnection, "<set-?>");
|
||
|
this.nestedScrollConnection = nestedScrollConnection;
|
||
|
}
|
||
|
|
||
|
public EnterAlwaysScrollBehavior(TopAppBarState state, AnimationSpec<Float> animationSpec, DecayAnimationSpec<Float> decayAnimationSpec, Function0<Boolean> canScroll) {
|
||
|
Intrinsics.checkNotNullParameter(state, "state");
|
||
|
Intrinsics.checkNotNullParameter(canScroll, "canScroll");
|
||
|
this.state = state;
|
||
|
this.snapAnimationSpec = animationSpec;
|
||
|
this.flingAnimationSpec = decayAnimationSpec;
|
||
|
this.canScroll = canScroll;
|
||
|
this.nestedScrollConnection = new EnterAlwaysScrollBehavior$nestedScrollConnection$1(this);
|
||
|
}
|
||
|
|
||
|
public /* synthetic */ EnterAlwaysScrollBehavior(TopAppBarState topAppBarState, AnimationSpec animationSpec, DecayAnimationSpec decayAnimationSpec, AnonymousClass1 anonymousClass1, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
||
|
this(topAppBarState, animationSpec, decayAnimationSpec, (i & 8) != 0 ? new Function0<Boolean>() { // from class: androidx.compose.material3.EnterAlwaysScrollBehavior.1
|
||
|
/* JADX WARN: Can't rename method to resolve collision */
|
||
|
@Override // kotlin.jvm.functions.Function0
|
||
|
public final Boolean invoke() {
|
||
|
return true;
|
||
|
}
|
||
|
} : anonymousClass1);
|
||
|
}
|
||
|
}
|