mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-18 03:47:18 +01:00
83 lines
5.2 KiB
Java
83 lines
5.2 KiB
Java
package androidx.compose.ui.input.key;
|
|
|
|
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 */
|
|
@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\u0002\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/key/SoftKeyboardInterceptionElement;", "Landroidx/compose/ui/node/ModifierNodeElement;", "Landroidx/compose/ui/input/key/InterceptedKeyInputNode;", "onKeyEvent", "Lkotlin/Function1;", "Landroidx/compose/ui/input/key/KeyEvent;", "", "onPreKeyEvent", "<init>", "(Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;)V", "getOnKeyEvent", "()Lkotlin/jvm/functions/Function1;", "getOnPreKeyEvent", "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 SoftKeyboardInterceptionElement extends ModifierNodeElement<InterceptedKeyInputNode> {
|
|
|
|
@Nullable
|
|
private final Function1<KeyEvent, Boolean> onKeyEvent;
|
|
|
|
@Nullable
|
|
private final Function1<KeyEvent, Boolean> onPreKeyEvent;
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public SoftKeyboardInterceptionElement(@Nullable Function1<? super KeyEvent, Boolean> function1, @Nullable Function1<? super KeyEvent, Boolean> function12) {
|
|
this.onKeyEvent = function1;
|
|
this.onPreKeyEvent = function12;
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
@NotNull
|
|
public InterceptedKeyInputNode create() {
|
|
return new InterceptedKeyInputNode(this.onKeyEvent, this.onPreKeyEvent);
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public boolean equals(@Nullable Object other) {
|
|
if (this == other) {
|
|
return true;
|
|
}
|
|
if (!(other instanceof SoftKeyboardInterceptionElement)) {
|
|
return false;
|
|
}
|
|
SoftKeyboardInterceptionElement softKeyboardInterceptionElement = (SoftKeyboardInterceptionElement) other;
|
|
return this.onKeyEvent == softKeyboardInterceptionElement.onKeyEvent && this.onPreKeyEvent == softKeyboardInterceptionElement.onPreKeyEvent;
|
|
}
|
|
|
|
@Nullable
|
|
public final Function1<KeyEvent, Boolean> getOnKeyEvent() {
|
|
return this.onKeyEvent;
|
|
}
|
|
|
|
@Nullable
|
|
public final Function1<KeyEvent, Boolean> getOnPreKeyEvent() {
|
|
return this.onPreKeyEvent;
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public int hashCode() {
|
|
Function1<KeyEvent, Boolean> function1 = this.onKeyEvent;
|
|
int hashCode = (function1 != null ? function1.hashCode() : 0) * 31;
|
|
Function1<KeyEvent, Boolean> function12 = this.onPreKeyEvent;
|
|
return hashCode + (function12 != null ? function12.hashCode() : 0);
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public void inspectableProperties(@NotNull InspectorInfo inspectorInfo) {
|
|
Function1<KeyEvent, Boolean> function1 = this.onKeyEvent;
|
|
if (function1 != null) {
|
|
inspectorInfo.setName("onKeyToSoftKeyboardInterceptedEvent");
|
|
inspectorInfo.getProperties().set("onKeyToSoftKeyboardInterceptedEvent", function1);
|
|
}
|
|
Function1<KeyEvent, Boolean> function12 = this.onPreKeyEvent;
|
|
if (function12 != null) {
|
|
inspectorInfo.setName("onPreKeyToSoftKeyboardInterceptedEvent");
|
|
inspectorInfo.getProperties().set("onPreKeyToSoftKeyboardInterceptedEvent", function12);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public void update(@NotNull InterceptedKeyInputNode node) {
|
|
node.setOnEvent(this.onKeyEvent);
|
|
node.setOnPreEvent(this.onPreKeyEvent);
|
|
}
|
|
}
|