mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-30 11:02:31 -06:00
145 lines
11 KiB
Java
145 lines
11 KiB
Java
|
package androidx.compose.foundation;
|
||
|
|
||
|
import androidx.compose.foundation.AbstractClickableNode;
|
||
|
import androidx.compose.foundation.gestures.ScrollableKt;
|
||
|
import androidx.compose.foundation.interaction.MutableInteractionSource;
|
||
|
import androidx.compose.ui.input.pointer.PointerEvent;
|
||
|
import androidx.compose.ui.input.pointer.PointerEventPass;
|
||
|
import androidx.compose.ui.input.pointer.PointerInputScope;
|
||
|
import androidx.compose.ui.input.pointer.SuspendingPointerInputFilterKt;
|
||
|
import androidx.compose.ui.input.pointer.SuspendingPointerInputModifierNode;
|
||
|
import androidx.compose.ui.modifier.ModifierLocalModifierNode;
|
||
|
import androidx.compose.ui.node.CompositionLocalConsumerModifierNode;
|
||
|
import androidx.compose.ui.node.DelegatingNode;
|
||
|
import androidx.compose.ui.node.PointerInputModifierNode;
|
||
|
import kotlin.Metadata;
|
||
|
import kotlin.Unit;
|
||
|
import kotlin.coroutines.Continuation;
|
||
|
import kotlin.jvm.functions.Function0;
|
||
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||
|
import kotlin.jvm.internal.Intrinsics;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* compiled from: Clickable.kt */
|
||
|
@Metadata(d1 = {"\u0000n\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0011\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b2\u0018\u00002\u00020\u00012\u00020\u00022\u00020\u00032\u00020\u0004B/\b\u0004\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\b\u0010\u0007\u001a\u0004\u0018\u00010\b\u0012\f\u0010\t\u001a\b\u0012\u0004\u0012\u00020\u000b0\n\u0012\u0006\u0010\f\u001a\u00020\r¢\u0006\u0002\u0010\u000eJ\b\u0010 \u001a\u00020\u000bH\u0016J-\u0010!\u001a\u00020\u000b2\u0006\u0010\"\u001a\u00020#2\u0006\u0010$\u001a\u00020%2\u0006\u0010&\u001a\u00020'H\u0016ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b(\u0010)J\b\u0010*\u001a\u00020\u000bH\u0004J%\u0010+\u001a\u00020\u000b*\u00020,2\u0006\u0010-\u001a\u00020.H\u0084@ø\u0001\u0000ø\u0001\u0001ø\u0001\u0001¢\u0006\u0004\b/\u00100J\u0015\u00101\u001a\u00020\u000b*\u000202H¤@ø\u0001\u0001¢\u0006\u0002\u00103R\u0014\u0010\u000f\u001a\b\u0012\u0004\u0012\u00020\u00060\nX\u0082\u0004¢\u0006\u0002\n\u0000R\u001a\u0010\u0005\u001a\u00020\u0006X\u0084\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0010\u0010\u0011\"\u0004\b\u0012\u0010\u0013R\u0014\u0010\f\u001a\u00020\rX\u0084\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0014\u0010\u0015R\u001c\u0010\u0007\u001a\u0004\u0018\u00010\bX\u0084\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0016\u0010\u0017\"\u0004\b\u0018\u0010\u0019R \u0010\t\u001a\b\u0012\u0004\u0012\u00020\u000b0\nX\u0084\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u001a\u0010\u001b\"\u0004\b\u001c\u0010\u001dR\u000e\u0010\u001e\u001a\u00020\u001fX\u0082\u0004¢\u0006\u0002\n\u0000\u0082\u0001\u000245\u0082\u0002\u000b\n\u0005\b¡\u001e0\u0001\n\u0002\b\u0019¨\u00066"}, d2 = {"Landroidx/compose/foundation/AbstractClickablePointerInputNode;", "Landroidx/compose/ui/node/DelegatingNode;", "Landroidx/compose/ui/modifier/ModifierLocalModifierNode;", "Landroidx/compose/ui/node/CompositionLocalConsumerModifierNode;", "Landroidx/compose/ui/node/PointerInputModifierNode;", "enabled", "", "interactionSource", "Landroidx/compose/foundation/interaction/MutableInteractionSource;", "onClick", "Lkotlin/Function0;", "", "interactionData", "Landroidx/compose/foundation/AbstractClickableNode$InteractionData;", "(ZLandroidx/compose/foundation/interaction/MutableInteractionSource;Lkotlin/jvm/functions/Function0;Landroidx/compose/foundation/AbstractClickableNode$InteractionData;)V", "delayPressInteraction", "getEnabled", "()Z", "setEnabled", "(Z)V", "getInteractionData", "()Landroidx/compose/foundation/AbstractClickableNode$InteractionData;", "getInteractionSource", "()Landroidx/compose/foundation/interaction/MutableInteractionSource;", "setInteractionSource", "(Landroidx/compose/foundation/interaction/MutableInteractionSource;)V", "getOnClick", "()Lkotlin/jvm/functions/Function0;", "setOnClick", "(Lkotlin/jvm/functions/Function0;)V", "pointerInputNode", "Landroidx/compose/ui/input/pointer/SuspendingPointerInputModifierNode;", "onCancelPointerInput", "onPointerEvent", "pointerEvent", "Landroidx/compose/ui/input/pointer/PointerEvent;", "pass", "Landroidx/compose/ui/input/pointer/PointerEventPass;", "bounds", "Landroidx/compose/ui/unit/IntSize;", "onPointerEvent-H0pRuoY", "(Landroidx/compose/ui/input/pointer/PointerEvent;Landroidx/compose/ui/input/pointer/PointerEventPass;J)V", "resetPointerInputHandler", "handlePressInteraction", "Landroidx/compose/foundation/gestures/PressGestureScope;", "offset", "Landroidx/compose/ui/geometry/Offset;", "handlePressInteraction-d-4ec7I", "(Landroidx/compose/foundation/gestures/PressGestureScope;JLkotlin/coroutines/Continuation;)Ljava/lang/Object;", "pointerInput", "Landroidx/compose/ui/input/pointer/PointerInputScope;", "(Landroidx/compose/ui/i
|
||
|
/* loaded from: classes.dex */
|
||
|
public abstract class AbstractClickablePointerInputNode extends DelegatingNode implements ModifierLocalModifierNode, CompositionLocalConsumerModifierNode, PointerInputModifierNode {
|
||
|
private final Function0<Boolean> delayPressInteraction;
|
||
|
private boolean enabled;
|
||
|
private final AbstractClickableNode.InteractionData interactionData;
|
||
|
private MutableInteractionSource interactionSource;
|
||
|
private Function0<Unit> onClick;
|
||
|
private final SuspendingPointerInputModifierNode pointerInputNode;
|
||
|
|
||
|
public /* synthetic */ AbstractClickablePointerInputNode(boolean z, MutableInteractionSource mutableInteractionSource, Function0 function0, AbstractClickableNode.InteractionData interactionData, DefaultConstructorMarker defaultConstructorMarker) {
|
||
|
this(z, mutableInteractionSource, function0, interactionData);
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public final boolean getEnabled() {
|
||
|
return this.enabled;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public final AbstractClickableNode.InteractionData getInteractionData() {
|
||
|
return this.interactionData;
|
||
|
}
|
||
|
|
||
|
protected final MutableInteractionSource getInteractionSource() {
|
||
|
return this.interactionSource;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public final Function0<Unit> getOnClick() {
|
||
|
return this.onClick;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public abstract Object pointerInput(PointerInputScope pointerInputScope, Continuation<? super Unit> continuation);
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public final void setEnabled(boolean z) {
|
||
|
this.enabled = z;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public final void setInteractionSource(MutableInteractionSource mutableInteractionSource) {
|
||
|
this.interactionSource = mutableInteractionSource;
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public final void setOnClick(Function0<Unit> function0) {
|
||
|
Intrinsics.checkNotNullParameter(function0, "<set-?>");
|
||
|
this.onClick = function0;
|
||
|
}
|
||
|
|
||
|
private AbstractClickablePointerInputNode(boolean z, MutableInteractionSource mutableInteractionSource, Function0<Unit> function0, AbstractClickableNode.InteractionData interactionData) {
|
||
|
this.enabled = z;
|
||
|
this.interactionSource = mutableInteractionSource;
|
||
|
this.onClick = function0;
|
||
|
this.interactionData = interactionData;
|
||
|
this.delayPressInteraction = new Function0<Boolean>() { // from class: androidx.compose.foundation.AbstractClickablePointerInputNode$delayPressInteraction$1
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
{
|
||
|
super(0);
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: Can't rename method to resolve collision */
|
||
|
@Override // kotlin.jvm.functions.Function0
|
||
|
public final Boolean invoke() {
|
||
|
return Boolean.valueOf(((Boolean) AbstractClickablePointerInputNode.this.getCurrent(ScrollableKt.getModifierLocalScrollableContainer())).booleanValue() || Clickable_androidKt.isComposeRootInScrollableContainer(AbstractClickablePointerInputNode.this));
|
||
|
}
|
||
|
};
|
||
|
this.pointerInputNode = (SuspendingPointerInputModifierNode) delegate(SuspendingPointerInputFilterKt.SuspendingPointerInputModifierNode(new AbstractClickablePointerInputNode$pointerInputNode$1(this, null)));
|
||
|
}
|
||
|
|
||
|
@Override // androidx.compose.ui.node.PointerInputModifierNode
|
||
|
/* renamed from: onPointerEvent-H0pRuoY */
|
||
|
public void mo152onPointerEventH0pRuoY(PointerEvent pointerEvent, PointerEventPass pass, long bounds) {
|
||
|
Intrinsics.checkNotNullParameter(pointerEvent, "pointerEvent");
|
||
|
Intrinsics.checkNotNullParameter(pass, "pass");
|
||
|
this.pointerInputNode.mo152onPointerEventH0pRuoY(pointerEvent, pass, bounds);
|
||
|
}
|
||
|
|
||
|
@Override // androidx.compose.ui.node.PointerInputModifierNode
|
||
|
public void onCancelPointerInput() {
|
||
|
this.pointerInputNode.onCancelPointerInput();
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
/* JADX WARN: Code restructure failed: missing block: B:3:0x0004, code lost:
|
||
|
|
||
|
r7 = androidx.compose.foundation.ClickableKt.m209handlePressInteractionEPk0efs(r8, r9, r3, r7.interactionData, r7.delayPressInteraction, r11);
|
||
|
*/
|
||
|
/* renamed from: handlePressInteraction-d-4ec7I, 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 m157handlePressInteractiond4ec7I(androidx.compose.foundation.gestures.PressGestureScope r8, long r9, kotlin.coroutines.Continuation<? super kotlin.Unit> r11) {
|
||
|
/*
|
||
|
r7 = this;
|
||
|
androidx.compose.foundation.interaction.MutableInteractionSource r3 = r7.interactionSource
|
||
|
if (r3 == 0) goto L16
|
||
|
androidx.compose.foundation.AbstractClickableNode$InteractionData r4 = r7.interactionData
|
||
|
kotlin.jvm.functions.Function0<java.lang.Boolean> r5 = r7.delayPressInteraction
|
||
|
r0 = r8
|
||
|
r1 = r9
|
||
|
r6 = r11
|
||
|
java.lang.Object r7 = androidx.compose.foundation.ClickableKt.m198access$handlePressInteractionEPk0efs(r0, r1, r3, r4, r5, r6)
|
||
|
java.lang.Object r8 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||
|
if (r7 != r8) goto L16
|
||
|
return r7
|
||
|
L16:
|
||
|
kotlin.Unit r7 = kotlin.Unit.INSTANCE
|
||
|
return r7
|
||
|
*/
|
||
|
throw new UnsupportedOperationException("Method not decompiled: androidx.compose.foundation.AbstractClickablePointerInputNode.m157handlePressInteractiond4ec7I(androidx.compose.foundation.gestures.PressGestureScope, long, kotlin.coroutines.Continuation):java.lang.Object");
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public final void resetPointerInputHandler() {
|
||
|
this.pointerInputNode.resetPointerInputHandler();
|
||
|
}
|
||
|
}
|