mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
36 lines
2.2 KiB
Java
36 lines
2.2 KiB
Java
package androidx.compose.ui.platform;
|
|
|
|
import android.view.View;
|
|
import androidx.compose.ui.input.pointer.AndroidPointerIcon;
|
|
import androidx.compose.ui.input.pointer.AndroidPointerIconType;
|
|
import androidx.compose.ui.input.pointer.PointerIcon;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: AndroidComposeView.android.kt */
|
|
@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\bÃ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u001a\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00062\b\u0010\u0007\u001a\u0004\u0018\u00010\bH\u0007¨\u0006\t"}, d2 = {"Landroidx/compose/ui/platform/AndroidComposeViewVerificationHelperMethodsN;", "", "()V", "setPointerIcon", "", "view", "Landroid/view/View;", "icon", "Landroidx/compose/ui/input/pointer/PointerIcon;", "ui_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
final class AndroidComposeViewVerificationHelperMethodsN {
|
|
public static final AndroidComposeViewVerificationHelperMethodsN INSTANCE = new AndroidComposeViewVerificationHelperMethodsN();
|
|
|
|
private AndroidComposeViewVerificationHelperMethodsN() {
|
|
}
|
|
|
|
public final void setPointerIcon(View view, PointerIcon icon) {
|
|
android.view.PointerIcon systemIcon;
|
|
Intrinsics.checkNotNullParameter(view, "view");
|
|
if (icon instanceof AndroidPointerIcon) {
|
|
systemIcon = ((AndroidPointerIcon) icon).getPointerIcon();
|
|
} else if (icon instanceof AndroidPointerIconType) {
|
|
systemIcon = android.view.PointerIcon.getSystemIcon(view.getContext(), ((AndroidPointerIconType) icon).getType());
|
|
Intrinsics.checkNotNullExpressionValue(systemIcon, "getSystemIcon(view.context, icon.type)");
|
|
} else {
|
|
systemIcon = android.view.PointerIcon.getSystemIcon(view.getContext(), 1000);
|
|
Intrinsics.checkNotNullExpressionValue(systemIcon, "getSystemIcon(\n …DEFAULT\n )");
|
|
}
|
|
if (Intrinsics.areEqual(view.getPointerIcon(), systemIcon)) {
|
|
return;
|
|
}
|
|
view.setPointerIcon(systemIcon);
|
|
}
|
|
}
|