mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-17 19:37:18 +01:00
85 lines
5.5 KiB
Java
85 lines
5.5 KiB
Java
package androidx.compose.ui.input.indirect;
|
|
|
|
import androidx.compose.ui.ExperimentalIndirectTouchTypeApi;
|
|
import androidx.compose.ui.node.ModifierNodeElement;
|
|
import androidx.compose.ui.platform.InspectorInfo;
|
|
import com.amazon.alexa.redesign.view.container.CardStudioAgentSpaceMetrics;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.functions.Function1;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@ExperimentalIndirectTouchTypeApi
|
|
@Metadata(d1 = {"\u0000:\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\b\b\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\b\u0003\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B3\u0012\u0014\u0010\u0003\u001a\u0010\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0004\u0012\u0014\u0010\u0007\u001a\u0010\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0004¢\u0006\u0004\b\b\u0010\tJ\b\u0010\r\u001a\u00020\u0002H\u0016J\u0010\u0010\u000e\u001a\u00020\u000f2\u0006\u0010\u0010\u001a\u00020\u0002H\u0016J\f\u0010\u0011\u001a\u00020\u000f*\u00020\u0012H\u0016J\u0013\u0010\u0013\u001a\u00020\u00062\b\u0010\u0014\u001a\u0004\u0018\u00010\u0015H\u0096\u0002J\b\u0010\u0016\u001a\u00020\u0017H\u0016R\u001f\u0010\u0003\u001a\u0010\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0004¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u000bR\u001f\u0010\u0007\u001a\u0010\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0004¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\u000b¨\u0006\u0018"}, d2 = {"Landroidx/compose/ui/input/indirect/IndirectTouchInputElement;", "Landroidx/compose/ui/node/ModifierNodeElement;", "Landroidx/compose/ui/input/indirect/IndirectTouchInputNode;", "onIndirectTouchEvent", "Lkotlin/Function1;", "Landroidx/compose/ui/input/indirect/IndirectTouchEvent;", "", "onPreIndirectTouchEvent", "<init>", "(Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;)V", "getOnIndirectTouchEvent", "()Lkotlin/jvm/functions/Function1;", "getOnPreIndirectTouchEvent", "create", "update", "", "node", "inspectableProperties", "Landroidx/compose/ui/platform/InspectorInfo;", "equals", CardStudioAgentSpaceMetrics.DimensionValue.SCHEME_OTHER, "", "hashCode", "", "ui_release"}, k = 1, mv = {2, 0, 0}, xi = 48)
|
|
/* loaded from: classes13.dex */
|
|
final class IndirectTouchInputElement extends ModifierNodeElement<IndirectTouchInputNode> {
|
|
|
|
@Nullable
|
|
private final Function1<IndirectTouchEvent, Boolean> onIndirectTouchEvent;
|
|
|
|
@Nullable
|
|
private final Function1<IndirectTouchEvent, Boolean> onPreIndirectTouchEvent;
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public IndirectTouchInputElement(@Nullable Function1<? super IndirectTouchEvent, Boolean> function1, @Nullable Function1<? super IndirectTouchEvent, Boolean> function12) {
|
|
this.onIndirectTouchEvent = function1;
|
|
this.onPreIndirectTouchEvent = function12;
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
@NotNull
|
|
public IndirectTouchInputNode create() {
|
|
return new IndirectTouchInputNode(this.onIndirectTouchEvent, this.onPreIndirectTouchEvent);
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public boolean equals(@Nullable Object other) {
|
|
if (this == other) {
|
|
return true;
|
|
}
|
|
if (!(other instanceof IndirectTouchInputElement)) {
|
|
return false;
|
|
}
|
|
IndirectTouchInputElement indirectTouchInputElement = (IndirectTouchInputElement) other;
|
|
return this.onIndirectTouchEvent == indirectTouchInputElement.onIndirectTouchEvent && this.onPreIndirectTouchEvent == indirectTouchInputElement.onPreIndirectTouchEvent;
|
|
}
|
|
|
|
@Nullable
|
|
public final Function1<IndirectTouchEvent, Boolean> getOnIndirectTouchEvent() {
|
|
return this.onIndirectTouchEvent;
|
|
}
|
|
|
|
@Nullable
|
|
public final Function1<IndirectTouchEvent, Boolean> getOnPreIndirectTouchEvent() {
|
|
return this.onPreIndirectTouchEvent;
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public int hashCode() {
|
|
Function1<IndirectTouchEvent, Boolean> function1 = this.onIndirectTouchEvent;
|
|
int hashCode = (function1 != null ? function1.hashCode() : 0) * 31;
|
|
Function1<IndirectTouchEvent, Boolean> function12 = this.onPreIndirectTouchEvent;
|
|
return hashCode + (function12 != null ? function12.hashCode() : 0);
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public void inspectableProperties(@NotNull InspectorInfo inspectorInfo) {
|
|
Function1<IndirectTouchEvent, Boolean> function1 = this.onIndirectTouchEvent;
|
|
if (function1 != null) {
|
|
inspectorInfo.setName("onIndirectTouchEvent");
|
|
inspectorInfo.getProperties().set("onIndirectTouchEvent", function1);
|
|
}
|
|
Function1<IndirectTouchEvent, Boolean> function12 = this.onPreIndirectTouchEvent;
|
|
if (function12 != null) {
|
|
inspectorInfo.setName("onPreIndirectTouchEvent");
|
|
inspectorInfo.getProperties().set("onPreIndirectTouchEvent", function12);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public void update(@NotNull IndirectTouchInputNode node) {
|
|
node.setOnEvent(this.onIndirectTouchEvent);
|
|
node.setOnPreEvent(this.onPreIndirectTouchEvent);
|
|
}
|
|
}
|