mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-27 01:22:33 -06:00
61 lines
4.1 KiB
Java
61 lines
4.1 KiB
Java
package androidx.compose.foundation;
|
|
|
|
import android.view.KeyEvent;
|
|
import android.view.View;
|
|
import android.view.ViewConfiguration;
|
|
import android.view.ViewGroup;
|
|
import android.view.ViewParent;
|
|
import androidx.compose.ui.input.key.KeyEventType;
|
|
import androidx.compose.ui.input.key.KeyEvent_androidKt;
|
|
import androidx.compose.ui.input.key.Key_androidKt;
|
|
import androidx.compose.ui.node.CompositionLocalConsumerModifierNode;
|
|
import androidx.compose.ui.node.CompositionLocalConsumerModifierNodeKt;
|
|
import androidx.compose.ui.platform.AndroidCompositionLocals_androidKt;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: Clickable.android.kt */
|
|
@Metadata(d1 = {"\u0000\"\n\u0000\n\u0002\u0010\t\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u001a\f\u0010\r\u001a\u00020\u0005*\u00020\u000eH\u0000\u001a\f\u0010\u000f\u001a\u00020\u0005*\u00020\u0010H\u0002\"\u0014\u0010\u0000\u001a\u00020\u0001X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0002\u0010\u0003\"\u001b\u0010\u0004\u001a\u00020\u0005*\u00020\u00068@X\u0080\u0004ø\u0001\u0000¢\u0006\u0006\u001a\u0004\b\u0007\u0010\b\"\u001b\u0010\t\u001a\u00020\u0005*\u00020\u00068BX\u0082\u0004ø\u0001\u0000¢\u0006\u0006\u001a\u0004\b\n\u0010\b\"\u001b\u0010\u000b\u001a\u00020\u0005*\u00020\u00068@X\u0080\u0004ø\u0001\u0000¢\u0006\u0006\u001a\u0004\b\f\u0010\b\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0011"}, d2 = {"TapIndicationDelay", "", "getTapIndicationDelay", "()J", "isClick", "", "Landroidx/compose/ui/input/key/KeyEvent;", "isClick-ZmokQxo", "(Landroid/view/KeyEvent;)Z", "isEnter", "isEnter-ZmokQxo", "isPress", "isPress-ZmokQxo", "isComposeRootInScrollableContainer", "Landroidx/compose/ui/node/CompositionLocalConsumerModifierNode;", "isInScrollableViewGroup", "Landroid/view/View;", "foundation_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final class Clickable_androidKt {
|
|
private static final long TapIndicationDelay = ViewConfiguration.getTapTimeout();
|
|
|
|
public static final long getTapIndicationDelay() {
|
|
return TapIndicationDelay;
|
|
}
|
|
|
|
public static final boolean isComposeRootInScrollableContainer(CompositionLocalConsumerModifierNode compositionLocalConsumerModifierNode) {
|
|
Intrinsics.checkNotNullParameter(compositionLocalConsumerModifierNode, "<this>");
|
|
return isInScrollableViewGroup((View) CompositionLocalConsumerModifierNodeKt.currentValueOf(compositionLocalConsumerModifierNode, AndroidCompositionLocals_androidKt.getLocalView()));
|
|
}
|
|
|
|
private static final boolean isInScrollableViewGroup(View view) {
|
|
ViewParent parent = view.getParent();
|
|
while (parent != null && (parent instanceof ViewGroup)) {
|
|
ViewGroup viewGroup = (ViewGroup) parent;
|
|
if (viewGroup.shouldDelayChildPressedState()) {
|
|
return true;
|
|
}
|
|
parent = viewGroup.getParent();
|
|
}
|
|
return false;
|
|
}
|
|
|
|
/* renamed from: isPress-ZmokQxo, reason: not valid java name */
|
|
public static final boolean m217isPressZmokQxo(KeyEvent isPress) {
|
|
Intrinsics.checkNotNullParameter(isPress, "$this$isPress");
|
|
return KeyEventType.m3618equalsimpl0(KeyEvent_androidKt.m3626getTypeZmokQxo(isPress), KeyEventType.INSTANCE.m3622getKeyDownCS__XNY()) && m216isEnterZmokQxo(isPress);
|
|
}
|
|
|
|
/* renamed from: isClick-ZmokQxo, reason: not valid java name */
|
|
public static final boolean m215isClickZmokQxo(KeyEvent isClick) {
|
|
Intrinsics.checkNotNullParameter(isClick, "$this$isClick");
|
|
return KeyEventType.m3618equalsimpl0(KeyEvent_androidKt.m3626getTypeZmokQxo(isClick), KeyEventType.INSTANCE.m3623getKeyUpCS__XNY()) && m216isEnterZmokQxo(isClick);
|
|
}
|
|
|
|
/* renamed from: isEnter-ZmokQxo, reason: not valid java name */
|
|
private static final boolean m216isEnterZmokQxo(KeyEvent keyEvent) {
|
|
int m3632getNativeKeyCodeYVgTNJs = Key_androidKt.m3632getNativeKeyCodeYVgTNJs(KeyEvent_androidKt.m3625getKeyZmokQxo(keyEvent));
|
|
return m3632getNativeKeyCodeYVgTNJs == 23 || m3632getNativeKeyCodeYVgTNJs == 66 || m3632getNativeKeyCodeYVgTNJs == 160;
|
|
}
|
|
}
|