alexandroid/decompiled/jadx/sources/androidx/compose/foundation/gestures/ScrollableNestedScrollConnection.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

106 lines
6.3 KiB
Java

package androidx.compose.foundation.gestures;
import androidx.compose.ui.geometry.Offset;
import androidx.compose.ui.input.nestedscroll.NestedScrollConnection;
import kotlin.Metadata;
import org.jetbrains.annotations.NotNull;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0002\u0018\u00002\u00020\u0001B\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006J#\u0010\r\u001a\u00020\u000e2\u0006\u0010\u000f\u001a\u00020\u000e2\u0006\u0010\u0010\u001a\u00020\u000eH\u0096@ø\u0001\u0000¢\u0006\u0004\b\u0011\u0010\u0012J*\u0010\u0013\u001a\u00020\u00142\u0006\u0010\u000f\u001a\u00020\u00142\u0006\u0010\u0010\u001a\u00020\u00142\u0006\u0010\u0015\u001a\u00020\u0016H\u0016ø\u0001\u0000¢\u0006\u0004\b\u0017\u0010\u0018R\u001a\u0010\u0004\u001a\u00020\u0005X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0007\u0010\b\"\u0004\b\t\u0010\nR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\f\u0082\u0002\u0007\n\u0005\b¡\u001e0\u0001¨\u0006\u0019"}, d2 = {"Landroidx/compose/foundation/gestures/ScrollableNestedScrollConnection;", "Landroidx/compose/ui/input/nestedscroll/NestedScrollConnection;", "scrollingLogic", "Landroidx/compose/foundation/gestures/ScrollingLogic;", "enabled", "", "(Landroidx/compose/foundation/gestures/ScrollingLogic;Z)V", "getEnabled", "()Z", "setEnabled", "(Z)V", "getScrollingLogic", "()Landroidx/compose/foundation/gestures/ScrollingLogic;", "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", "foundation_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes.dex */
final class ScrollableNestedScrollConnection implements NestedScrollConnection {
private boolean enabled;
@NotNull
private final ScrollingLogic scrollingLogic;
public ScrollableNestedScrollConnection(@NotNull ScrollingLogic scrollingLogic, boolean z) {
this.scrollingLogic = scrollingLogic;
this.enabled = z;
}
public final boolean getEnabled() {
return this.enabled;
}
@NotNull
public final ScrollingLogic getScrollingLogic() {
return this.scrollingLogic;
}
/* JADX WARN: Removed duplicated region for block: B:16:0x0033 */
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
@Override // androidx.compose.ui.input.nestedscroll.NestedScrollConnection
@org.jetbrains.annotations.Nullable
/* renamed from: onPostFling-RZ2iAVY, reason: not valid java name */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public java.lang.Object mo666onPostFlingRZ2iAVY(long r3, long r5, @org.jetbrains.annotations.NotNull kotlin.coroutines.Continuation<? super androidx.compose.ui.unit.Velocity> r7) {
/*
r2 = this;
boolean r3 = r7 instanceof androidx.compose.foundation.gestures.ScrollableNestedScrollConnection$onPostFling$1
if (r3 == 0) goto L13
r3 = r7
androidx.compose.foundation.gestures.ScrollableNestedScrollConnection$onPostFling$1 r3 = (androidx.compose.foundation.gestures.ScrollableNestedScrollConnection$onPostFling$1) r3
int r4 = r3.label
r0 = -2147483648(0xffffffff80000000, float:-0.0)
r1 = r4 & r0
if (r1 == 0) goto L13
int r4 = r4 - r0
r3.label = r4
goto L18
L13:
androidx.compose.foundation.gestures.ScrollableNestedScrollConnection$onPostFling$1 r3 = new androidx.compose.foundation.gestures.ScrollableNestedScrollConnection$onPostFling$1
r3.<init>(r2, r7)
L18:
java.lang.Object r4 = r3.result
java.lang.Object r7 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
int r0 = r3.label
r1 = 1
if (r0 == 0) goto L33
if (r0 != r1) goto L2b
long r5 = r3.J$0
kotlin.ResultKt.throwOnFailure(r4)
goto L47
L2b:
java.lang.String r2 = "call to 'resume' before 'invoke' with coroutine"
rx.Single$$ExternalSyntheticBUOutline0.m$2(r2)
r2 = 0
return r2
L33:
kotlin.ResultKt.throwOnFailure(r4)
boolean r4 = r2.enabled
if (r4 == 0) goto L52
androidx.compose.foundation.gestures.ScrollingLogic r2 = r2.scrollingLogic
r3.J$0 = r5
r3.label = r1
java.lang.Object r4 = r2.m677doFlingAnimationQWom1Mo(r5, r3)
if (r4 != r7) goto L47
return r7
L47:
androidx.compose.ui.unit.Velocity r4 = (androidx.compose.ui.unit.Velocity) r4
long r2 = r4.getPackedValue()
long r2 = androidx.compose.ui.unit.Velocity.m7609minusAH228Gc(r5, r2)
goto L58
L52:
androidx.compose.ui.unit.Velocity$Companion r2 = androidx.compose.ui.unit.Velocity.INSTANCE
long r2 = r2.m7617getZero9UxMQ8M()
L58:
androidx.compose.ui.unit.Velocity r2 = androidx.compose.ui.unit.Velocity.m7597boximpl(r2)
return r2
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.compose.foundation.gestures.ScrollableNestedScrollConnection.mo666onPostFlingRZ2iAVY(long, long, kotlin.coroutines.Continuation):java.lang.Object");
}
@Override // androidx.compose.ui.input.nestedscroll.NestedScrollConnection
/* renamed from: onPostScroll-DzOQY0M, reason: not valid java name */
public long mo667onPostScrollDzOQY0M(long consumed, long available, int source) {
return this.enabled ? this.scrollingLogic.m679performRawScrollMKHz9U(available) : Offset.INSTANCE.m4416getZeroF1C5BW0();
}
public final void setEnabled(boolean z) {
this.enabled = z;
}
}