mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-17 03:17:17 +01:00
271 lines
15 KiB
Java
271 lines
15 KiB
Java
package androidx.compose.ui.input.nestedscroll;
|
|
|
|
import androidx.compose.runtime.internal.StabilityInferred;
|
|
import androidx.compose.ui.geometry.Offset;
|
|
import com.amazon.alexa.routing.api.RouteParameter;
|
|
import expo.modules.interfaces.permissions.PermissionsResponse;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.functions.Function0;
|
|
import kotlinx.coroutines.CoroutineScope;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
import rx.Single$$ExternalSyntheticBUOutline0;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@StabilityInferred(parameters = 0)
|
|
@Metadata(d1 = {"\u0000@\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\f\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0006\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003J\u001d\u0010\u001f\u001a\u00020 2\u0006\u0010!\u001a\u00020 2\u0006\u0010\"\u001a\u00020#¢\u0006\u0004\b$\u0010%J%\u0010&\u001a\u00020 2\u0006\u0010'\u001a\u00020 2\u0006\u0010!\u001a\u00020 2\u0006\u0010\"\u001a\u00020#¢\u0006\u0004\b(\u0010)J\u0018\u0010*\u001a\u00020+2\u0006\u0010!\u001a\u00020+H\u0086@¢\u0006\u0004\b,\u0010-J \u0010.\u001a\u00020+2\u0006\u0010'\u001a\u00020+2\u0006\u0010!\u001a\u00020+H\u0086@¢\u0006\u0004\b/\u00100R\u001c\u0010\u0004\u001a\u0004\u0018\u00010\u0005X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0006\u0010\u0007\"\u0004\b\b\u0010\tR\u001c\u0010\n\u001a\u0004\u0018\u00010\u0005X\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u000b\u0010\u0007\"\u0004\b\f\u0010\tR\"\u0010\r\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u000f0\u000eX\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0010\u0010\u0011\"\u0004\b\u0012\u0010\u0013R\u001c\u0010\u0014\u001a\u0004\u0018\u00010\u000fX\u0080\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0015\u0010\u0016\"\u0004\b\u0017\u0010\u0018R\u0011\u0010\u0019\u001a\u00020\u000f8F¢\u0006\u0006\u001a\u0004\b\u001a\u0010\u0016R\u0016\u0010\u001b\u001a\u0004\u0018\u00010\u001c8@X\u0080\u0004¢\u0006\u0006\u001a\u0004\b\u001d\u0010\u001e¨\u00061"}, d2 = {"Landroidx/compose/ui/input/nestedscroll/NestedScrollDispatcher;", "", "<init>", "()V", "nestedScrollNode", "Landroidx/compose/ui/input/nestedscroll/NestedScrollNode;", "getNestedScrollNode$ui_release", "()Landroidx/compose/ui/input/nestedscroll/NestedScrollNode;", "setNestedScrollNode$ui_release", "(Landroidx/compose/ui/input/nestedscroll/NestedScrollNode;)V", "lastKnownParentNode", "getLastKnownParentNode$ui_release", "setLastKnownParentNode$ui_release", "calculateNestedScrollScope", "Lkotlin/Function0;", "Lkotlinx/coroutines/CoroutineScope;", "getCalculateNestedScrollScope$ui_release", "()Lkotlin/jvm/functions/Function0;", "setCalculateNestedScrollScope$ui_release", "(Lkotlin/jvm/functions/Function0;)V", PermissionsResponse.SCOPE_KEY, "getScope$ui_release", "()Lkotlinx/coroutines/CoroutineScope;", "setScope$ui_release", "(Lkotlinx/coroutines/CoroutineScope;)V", "coroutineScope", "getCoroutineScope", RouteParameter.PARENT, "Landroidx/compose/ui/input/nestedscroll/NestedScrollConnection;", "getParent$ui_release", "()Landroidx/compose/ui/input/nestedscroll/NestedScrollConnection;", "dispatchPreScroll", "Landroidx/compose/ui/geometry/Offset;", "available", "source", "Landroidx/compose/ui/input/nestedscroll/NestedScrollSource;", "dispatchPreScroll-OzD1aCk", "(JI)J", "dispatchPostScroll", "consumed", "dispatchPostScroll-DzOQY0M", "(JJI)J", "dispatchPreFling", "Landroidx/compose/ui/unit/Velocity;", "dispatchPreFling-QWom1Mo", "(JLkotlin/coroutines/Continuation;)Ljava/lang/Object;", "dispatchPostFling", "dispatchPostFling-RZ2iAVY", "(JJLkotlin/coroutines/Continuation;)Ljava/lang/Object;", "ui_release"}, k = 1, mv = {2, 0, 0}, xi = 48)
|
|
/* loaded from: classes13.dex */
|
|
public final class NestedScrollDispatcher {
|
|
public static final int $stable = 8;
|
|
|
|
@NotNull
|
|
private Function0<? extends CoroutineScope> calculateNestedScrollScope = new Function0<CoroutineScope>() { // from class: androidx.compose.ui.input.nestedscroll.NestedScrollDispatcher$calculateNestedScrollScope$1
|
|
{
|
|
super(0);
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
public final CoroutineScope invoke() {
|
|
return NestedScrollDispatcher.this.getScope();
|
|
}
|
|
};
|
|
|
|
@Nullable
|
|
private NestedScrollNode lastKnownParentNode;
|
|
|
|
@Nullable
|
|
private NestedScrollNode nestedScrollNode;
|
|
|
|
@Nullable
|
|
private CoroutineScope scope;
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:25:0x004c, code lost:
|
|
|
|
if (r0 == r1) goto L30;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:26:0x006b, code lost:
|
|
|
|
return r1;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:31:0x0069, code lost:
|
|
|
|
if (r0 == r1) goto L30;
|
|
*/
|
|
/* JADX WARN: Removed duplicated region for block: B:20:0x0039 */
|
|
/* JADX WARN: Removed duplicated region for block: B:9:0x0026 */
|
|
@org.jetbrains.annotations.Nullable
|
|
/* renamed from: dispatchPostFling-RZ2iAVY, reason: not valid java name */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final java.lang.Object m5816dispatchPostFlingRZ2iAVY(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.ui.input.nestedscroll.NestedScrollDispatcher$dispatchPostFling$1
|
|
if (r0 == 0) goto L14
|
|
r0 = r10
|
|
androidx.compose.ui.input.nestedscroll.NestedScrollDispatcher$dispatchPostFling$1 r0 = (androidx.compose.ui.input.nestedscroll.NestedScrollDispatcher$dispatchPostFling$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.ui.input.nestedscroll.NestedScrollDispatcher$dispatchPostFling$1 r0 = new androidx.compose.ui.input.nestedscroll.NestedScrollDispatcher$dispatchPostFling$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 L39
|
|
if (r2 == r4) goto L35
|
|
if (r2 != r3) goto L2e
|
|
kotlin.ResultKt.throwOnFailure(r0)
|
|
goto L6c
|
|
L2e:
|
|
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
|
rx.Single$$ExternalSyntheticBUOutline0.m$2(r5)
|
|
r5 = 0
|
|
return r5
|
|
L35:
|
|
kotlin.ResultKt.throwOnFailure(r0)
|
|
goto L4f
|
|
L39:
|
|
kotlin.ResultKt.throwOnFailure(r0)
|
|
androidx.compose.ui.input.nestedscroll.NestedScrollConnection r0 = r5.getParent$ui_release()
|
|
if (r0 != 0) goto L5d
|
|
androidx.compose.ui.input.nestedscroll.NestedScrollNode r5 = r5.lastKnownParentNode
|
|
if (r5 == 0) goto L56
|
|
r10.label = r4
|
|
java.lang.Object r0 = r5.mo666onPostFlingRZ2iAVY(r6, r8, r10)
|
|
if (r0 != r1) goto L4f
|
|
goto L6b
|
|
L4f:
|
|
androidx.compose.ui.unit.Velocity r0 = (androidx.compose.ui.unit.Velocity) r0
|
|
long r5 = r0.getPackedValue()
|
|
goto L79
|
|
L56:
|
|
androidx.compose.ui.unit.Velocity$Companion r5 = androidx.compose.ui.unit.Velocity.INSTANCE
|
|
long r5 = r5.m7617getZero9UxMQ8M()
|
|
goto L79
|
|
L5d:
|
|
androidx.compose.ui.input.nestedscroll.NestedScrollConnection r5 = r5.getParent$ui_release()
|
|
if (r5 == 0) goto L73
|
|
r10.label = r3
|
|
java.lang.Object r0 = r5.mo666onPostFlingRZ2iAVY(r6, r8, r10)
|
|
if (r0 != r1) goto L6c
|
|
L6b:
|
|
return r1
|
|
L6c:
|
|
androidx.compose.ui.unit.Velocity r0 = (androidx.compose.ui.unit.Velocity) r0
|
|
long r5 = r0.getPackedValue()
|
|
goto L79
|
|
L73:
|
|
androidx.compose.ui.unit.Velocity$Companion r5 = androidx.compose.ui.unit.Velocity.INSTANCE
|
|
long r5 = r5.m7617getZero9UxMQ8M()
|
|
L79:
|
|
androidx.compose.ui.unit.Velocity r5 = androidx.compose.ui.unit.Velocity.m7597boximpl(r5)
|
|
return r5
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.compose.ui.input.nestedscroll.NestedScrollDispatcher.m5816dispatchPostFlingRZ2iAVY(long, long, kotlin.coroutines.Continuation):java.lang.Object");
|
|
}
|
|
|
|
/* renamed from: dispatchPostScroll-DzOQY0M, reason: not valid java name */
|
|
public final long m5817dispatchPostScrollDzOQY0M(long consumed, long available, int source) {
|
|
NestedScrollConnection parent$ui_release = getParent$ui_release();
|
|
return parent$ui_release != null ? parent$ui_release.mo667onPostScrollDzOQY0M(consumed, available, source) : Offset.INSTANCE.m4416getZeroF1C5BW0();
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:16:0x0030 */
|
|
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
|
@org.jetbrains.annotations.Nullable
|
|
/* renamed from: dispatchPreFling-QWom1Mo, reason: not valid java name */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final java.lang.Object m5818dispatchPreFlingQWom1Mo(long r5, @org.jetbrains.annotations.NotNull kotlin.coroutines.Continuation<? super androidx.compose.ui.unit.Velocity> r7) {
|
|
/*
|
|
r4 = this;
|
|
boolean r0 = r7 instanceof androidx.compose.ui.input.nestedscroll.NestedScrollDispatcher$dispatchPreFling$1
|
|
if (r0 == 0) goto L13
|
|
r0 = r7
|
|
androidx.compose.ui.input.nestedscroll.NestedScrollDispatcher$dispatchPreFling$1 r0 = (androidx.compose.ui.input.nestedscroll.NestedScrollDispatcher$dispatchPreFling$1) r0
|
|
int r1 = r0.label
|
|
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
|
r3 = r1 & r2
|
|
if (r3 == 0) goto L13
|
|
int r1 = r1 - r2
|
|
r0.label = r1
|
|
goto L18
|
|
L13:
|
|
androidx.compose.ui.input.nestedscroll.NestedScrollDispatcher$dispatchPreFling$1 r0 = new androidx.compose.ui.input.nestedscroll.NestedScrollDispatcher$dispatchPreFling$1
|
|
r0.<init>(r4, r7)
|
|
L18:
|
|
java.lang.Object r7 = r0.result
|
|
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
|
int r2 = r0.label
|
|
r3 = 1
|
|
if (r2 == 0) goto L30
|
|
if (r2 != r3) goto L29
|
|
kotlin.ResultKt.throwOnFailure(r7)
|
|
goto L42
|
|
L29:
|
|
java.lang.String r4 = "call to 'resume' before 'invoke' with coroutine"
|
|
rx.Single$$ExternalSyntheticBUOutline0.m$2(r4)
|
|
r4 = 0
|
|
return r4
|
|
L30:
|
|
kotlin.ResultKt.throwOnFailure(r7)
|
|
androidx.compose.ui.input.nestedscroll.NestedScrollConnection r4 = r4.getParent$ui_release()
|
|
if (r4 == 0) goto L49
|
|
r0.label = r3
|
|
java.lang.Object r7 = r4.mo940onPreFlingQWom1Mo(r5, r0)
|
|
if (r7 != r1) goto L42
|
|
return r1
|
|
L42:
|
|
androidx.compose.ui.unit.Velocity r7 = (androidx.compose.ui.unit.Velocity) r7
|
|
long r4 = r7.getPackedValue()
|
|
goto L4f
|
|
L49:
|
|
androidx.compose.ui.unit.Velocity$Companion r4 = androidx.compose.ui.unit.Velocity.INSTANCE
|
|
long r4 = r4.m7617getZero9UxMQ8M()
|
|
L4f:
|
|
androidx.compose.ui.unit.Velocity r4 = androidx.compose.ui.unit.Velocity.m7597boximpl(r4)
|
|
return r4
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: androidx.compose.ui.input.nestedscroll.NestedScrollDispatcher.m5818dispatchPreFlingQWom1Mo(long, kotlin.coroutines.Continuation):java.lang.Object");
|
|
}
|
|
|
|
/* renamed from: dispatchPreScroll-OzD1aCk, reason: not valid java name */
|
|
public final long m5819dispatchPreScrollOzD1aCk(long available, int source) {
|
|
NestedScrollConnection parent$ui_release = getParent$ui_release();
|
|
return parent$ui_release != null ? parent$ui_release.mo941onPreScrollOzD1aCk(available, source) : Offset.INSTANCE.m4416getZeroF1C5BW0();
|
|
}
|
|
|
|
@NotNull
|
|
public final Function0<CoroutineScope> getCalculateNestedScrollScope$ui_release() {
|
|
return this.calculateNestedScrollScope;
|
|
}
|
|
|
|
@NotNull
|
|
public final CoroutineScope getCoroutineScope() {
|
|
CoroutineScope invoke = this.calculateNestedScrollScope.invoke();
|
|
if (invoke != null) {
|
|
return invoke;
|
|
}
|
|
Single$$ExternalSyntheticBUOutline0.m$2("in order to access nested coroutine scope you need to attach dispatcher to the `Modifier.nestedScroll` first.");
|
|
return null;
|
|
}
|
|
|
|
@Nullable
|
|
/* renamed from: getLastKnownParentNode$ui_release, reason: from getter */
|
|
public final NestedScrollNode getLastKnownParentNode() {
|
|
return this.lastKnownParentNode;
|
|
}
|
|
|
|
@Nullable
|
|
/* renamed from: getNestedScrollNode$ui_release, reason: from getter */
|
|
public final NestedScrollNode getNestedScrollNode() {
|
|
return this.nestedScrollNode;
|
|
}
|
|
|
|
@Nullable
|
|
public final NestedScrollConnection getParent$ui_release() {
|
|
NestedScrollNode nestedScrollNode = this.nestedScrollNode;
|
|
if (nestedScrollNode != null) {
|
|
return nestedScrollNode.getParentNestedScrollNode$ui_release();
|
|
}
|
|
return null;
|
|
}
|
|
|
|
@Nullable
|
|
/* renamed from: getScope$ui_release, reason: from getter */
|
|
public final CoroutineScope getScope() {
|
|
return this.scope;
|
|
}
|
|
|
|
public final void setCalculateNestedScrollScope$ui_release(@NotNull Function0<? extends CoroutineScope> function0) {
|
|
this.calculateNestedScrollScope = function0;
|
|
}
|
|
|
|
public final void setLastKnownParentNode$ui_release(@Nullable NestedScrollNode nestedScrollNode) {
|
|
this.lastKnownParentNode = nestedScrollNode;
|
|
}
|
|
|
|
public final void setNestedScrollNode$ui_release(@Nullable NestedScrollNode nestedScrollNode) {
|
|
this.nestedScrollNode = nestedScrollNode;
|
|
}
|
|
|
|
public final void setScope$ui_release(@Nullable CoroutineScope coroutineScope) {
|
|
this.scope = coroutineScope;
|
|
}
|
|
}
|