alexandroid/decompiled/jadx/sources/androidx/compose/material3/ExitUntilCollapsedScrollBehavior$nestedScrollConnection$1.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

147 lines
8.8 KiB
Java

package androidx.compose.material3;
import androidx.compose.ui.geometry.Offset;
import androidx.compose.ui.geometry.OffsetKt;
import androidx.compose.ui.input.nestedscroll.NestedScrollConnection;
import kotlin.Metadata;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
@Metadata(d1 = {"\u0000!\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006*\u0001\u0000\b\n\u0018\u00002\u00020\u0001J#\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00032\u0006\u0010\u0005\u001a\u00020\u0003H\u0096@ø\u0001\u0000¢\u0006\u0004\b\u0006\u0010\u0007J*\u0010\b\u001a\u00020\t2\u0006\u0010\u0004\u001a\u00020\t2\u0006\u0010\u0005\u001a\u00020\t2\u0006\u0010\n\u001a\u00020\u000bH\u0016ø\u0001\u0000¢\u0006\u0004\b\f\u0010\rJ\"\u0010\u000e\u001a\u00020\t2\u0006\u0010\u0005\u001a\u00020\t2\u0006\u0010\n\u001a\u00020\u000bH\u0016ø\u0001\u0000¢\u0006\u0004\b\u000f\u0010\u0010\u0082\u0002\u0007\n\u0005\b¡\u001e0\u0001¨\u0006\u0011"}, d2 = {"androidx/compose/material3/ExitUntilCollapsedScrollBehavior$nestedScrollConnection$1", "Landroidx/compose/ui/input/nestedscroll/NestedScrollConnection;", "onPostFling", "Landroidx/compose/ui/unit/Velocity;", "consumed", "available", "onPostFling-RZ2iAVY", "(JJLkotlin/coroutines/Continuation;)Ljava/lang/Object;", "onPostScroll", "Landroidx/compose/ui/geometry/Offset;", "source", "Landroidx/compose/ui/input/nestedscroll/NestedScrollSource;", "onPostScroll-DzOQY0M", "(JJI)J", "onPreScroll", "onPreScroll-OzD1aCk", "(JI)J", "material3_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes13.dex */
public final class ExitUntilCollapsedScrollBehavior$nestedScrollConnection$1 implements NestedScrollConnection {
final /* synthetic */ ExitUntilCollapsedScrollBehavior this$0;
public ExitUntilCollapsedScrollBehavior$nestedScrollConnection$1(ExitUntilCollapsedScrollBehavior exitUntilCollapsedScrollBehavior) {
this.this$0 = exitUntilCollapsedScrollBehavior;
}
/* JADX WARN: Code restructure failed: missing block: B:23:0x004e, code lost:
if (r0 == r1) goto L22;
*/
/* JADX WARN: Removed duplicated region for block: B:21:0x007b */
/* JADX WARN: Removed duplicated region for block: B:22:0x0041 */
/* JADX WARN: Removed duplicated region for block: B:9:0x0026 */
@Override // androidx.compose.ui.input.nestedscroll.NestedScrollConnection
@org.jetbrains.annotations.Nullable
/* renamed from: onPostFling-RZ2iAVY */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public java.lang.Object mo666onPostFlingRZ2iAVY(long r6, long r8, @org.jetbrains.annotations.NotNull kotlin.coroutines.Continuation<? super androidx.compose.ui.unit.Velocity> r10) {
/*
r5 = this;
boolean r0 = r10 instanceof androidx.compose.material3.ExitUntilCollapsedScrollBehavior$nestedScrollConnection$1$onPostFling$1
if (r0 == 0) goto L14
r0 = r10
androidx.compose.material3.ExitUntilCollapsedScrollBehavior$nestedScrollConnection$1$onPostFling$1 r0 = (androidx.compose.material3.ExitUntilCollapsedScrollBehavior$nestedScrollConnection$1$onPostFling$1) r0
int r1 = r0.label
r2 = -2147483648(0xffffffff80000000, float:-0.0)
r3 = r1 & r2
if (r3 == 0) goto L14
int r1 = r1 - r2
r0.label = r1
L12:
r10 = r0
goto L1a
L14:
androidx.compose.material3.ExitUntilCollapsedScrollBehavior$nestedScrollConnection$1$onPostFling$1 r0 = new androidx.compose.material3.ExitUntilCollapsedScrollBehavior$nestedScrollConnection$1$onPostFling$1
r0.<init>(r5, r10)
goto L12
L1a:
java.lang.Object r0 = r10.result
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
int r2 = r10.label
r3 = 2
r4 = 1
if (r2 == 0) goto L41
if (r2 == r4) goto L37
if (r2 != r3) goto L30
long r5 = r10.J$0
kotlin.ResultKt.throwOnFailure(r0)
goto L7c
L30:
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
rx.Single$$ExternalSyntheticBUOutline0.m$2(r5)
r5 = 0
return r5
L37:
long r8 = r10.J$0
java.lang.Object r5 = r10.L$0
androidx.compose.material3.ExitUntilCollapsedScrollBehavior$nestedScrollConnection$1 r5 = (androidx.compose.material3.ExitUntilCollapsedScrollBehavior$nestedScrollConnection$1) r5
kotlin.ResultKt.throwOnFailure(r0)
goto L51
L41:
kotlin.ResultKt.throwOnFailure(r0)
r10.L$0 = r5
r10.J$0 = r8
r10.label = r4
java.lang.Object r0 = super.mo666onPostFlingRZ2iAVY(r6, r8, r10)
if (r0 != r1) goto L51
goto L7a
L51:
androidx.compose.ui.unit.Velocity r0 = (androidx.compose.ui.unit.Velocity) r0
long r6 = r0.getPackedValue()
androidx.compose.material3.ExitUntilCollapsedScrollBehavior r0 = r5.this$0
androidx.compose.material3.TopAppBarState r0 = r0.getState()
float r8 = androidx.compose.ui.unit.Velocity.m7607getYimpl(r8)
androidx.compose.material3.ExitUntilCollapsedScrollBehavior r9 = r5.this$0
androidx.compose.animation.core.DecayAnimationSpec r9 = r9.getFlingAnimationSpec()
androidx.compose.material3.ExitUntilCollapsedScrollBehavior r5 = r5.this$0
androidx.compose.animation.core.AnimationSpec r5 = r5.getSnapAnimationSpec()
r2 = 0
r10.L$0 = r2
r10.J$0 = r6
r10.label = r3
java.lang.Object r0 = androidx.compose.material3.AppBarKt.access$settleAppBar(r0, r8, r9, r5, r10)
if (r0 != r1) goto L7b
L7a:
return r1
L7b:
r5 = r6
L7c:
androidx.compose.ui.unit.Velocity r0 = (androidx.compose.ui.unit.Velocity) r0
long r7 = r0.getPackedValue()
long r5 = androidx.compose.ui.unit.Velocity.m7610plusAH228Gc(r5, r7)
androidx.compose.ui.unit.Velocity r5 = androidx.compose.ui.unit.Velocity.m7597boximpl(r5)
return r5
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.compose.material3.ExitUntilCollapsedScrollBehavior$nestedScrollConnection$1.mo666onPostFlingRZ2iAVY(long, long, kotlin.coroutines.Continuation):java.lang.Object");
}
@Override // androidx.compose.ui.input.nestedscroll.NestedScrollConnection
/* renamed from: onPostScroll-DzOQY0M */
public long mo667onPostScrollDzOQY0M(long consumed, long available, int source) {
if (!this.this$0.getCanScroll().invoke().booleanValue()) {
return Offset.INSTANCE.m4416getZeroF1C5BW0();
}
TopAppBarState state = this.this$0.getState();
state.setContentOffset(Offset.m4401getYimpl(consumed) + state.getContentOffset());
if (Offset.m4401getYimpl(available) < 0.0f || Offset.m4401getYimpl(consumed) < 0.0f) {
float heightOffset = this.this$0.getState().getHeightOffset();
this.this$0.getState().setHeightOffset(Offset.m4401getYimpl(consumed) + this.this$0.getState().getHeightOffset());
return OffsetKt.Offset(0.0f, this.this$0.getState().getHeightOffset() - heightOffset);
}
if (Offset.m4401getYimpl(consumed) == 0.0f && Offset.m4401getYimpl(available) > 0.0f) {
this.this$0.getState().setContentOffset(0.0f);
}
if (Offset.m4401getYimpl(available) <= 0.0f) {
return Offset.INSTANCE.m4416getZeroF1C5BW0();
}
float heightOffset2 = this.this$0.getState().getHeightOffset();
this.this$0.getState().setHeightOffset(Offset.m4401getYimpl(available) + this.this$0.getState().getHeightOffset());
return OffsetKt.Offset(0.0f, this.this$0.getState().getHeightOffset() - heightOffset2);
}
@Override // androidx.compose.ui.input.nestedscroll.NestedScrollConnection
/* renamed from: onPreScroll-OzD1aCk */
public long mo941onPreScrollOzD1aCk(long available, int source) {
if (!this.this$0.getCanScroll().invoke().booleanValue() || Offset.m4401getYimpl(available) > 0.0f) {
return Offset.INSTANCE.m4416getZeroF1C5BW0();
}
float heightOffset = this.this$0.getState().getHeightOffset();
this.this$0.getState().setHeightOffset(Offset.m4401getYimpl(available) + this.this$0.getState().getHeightOffset());
return heightOffset == this.this$0.getState().getHeightOffset() ? Offset.INSTANCE.m4416getZeroF1C5BW0() : Offset.m4394copydBAh8RU$default(available, 0.0f, 0.0f, 2, null);
}
}