mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-15 02:17:18 +01:00
66 lines
3.9 KiB
Java
66 lines
3.9 KiB
Java
package androidx.compose.foundation;
|
|
|
|
import androidx.annotation.RequiresApi;
|
|
import androidx.compose.ui.geometry.Rect;
|
|
import androidx.compose.ui.layout.LayoutCoordinates;
|
|
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 */
|
|
@RequiresApi(33)
|
|
@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\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\b\u0003\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\u001b\u0012\u0014\u0010\u0003\u001a\u0010\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0004¢\u0006\u0002\u0010\u0007J\b\u0010\n\u001a\u00020\u0002H\u0016J\u0013\u0010\u000b\u001a\u00020\f2\b\u0010\r\u001a\u0004\u0018\u00010\u000eH\u0096\u0002J\b\u0010\u000f\u001a\u00020\u0010H\u0016J\u0010\u0010\u0011\u001a\u00020\u00122\u0006\u0010\u0013\u001a\u00020\u0002H\u0016J\f\u0010\u0014\u001a\u00020\u0012*\u00020\u0015H\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\b\u0010\t¨\u0006\u0016"}, d2 = {"Landroidx/compose/foundation/PreferKeepClearElement;", "Landroidx/compose/ui/node/ModifierNodeElement;", "Landroidx/compose/foundation/PreferKeepClearNode;", "clearRect", "Lkotlin/Function1;", "Landroidx/compose/ui/layout/LayoutCoordinates;", "Landroidx/compose/ui/geometry/Rect;", "(Lkotlin/jvm/functions/Function1;)V", "getClearRect", "()Lkotlin/jvm/functions/Function1;", "create", "equals", "", CardStudioAgentSpaceMetrics.DimensionValue.SCHEME_OTHER, "", "hashCode", "", "update", "", "node", "inspectableProperties", "Landroidx/compose/ui/platform/InspectorInfo;", "foundation_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
final class PreferKeepClearElement extends ModifierNodeElement<PreferKeepClearNode> {
|
|
|
|
@Nullable
|
|
private final Function1<LayoutCoordinates, Rect> clearRect;
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public PreferKeepClearElement(@Nullable Function1<? super LayoutCoordinates, Rect> function1) {
|
|
this.clearRect = function1;
|
|
}
|
|
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
@NotNull
|
|
public PreferKeepClearNode create() {
|
|
return new PreferKeepClearNode(this.clearRect);
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public boolean equals(@Nullable Object other) {
|
|
return (other instanceof PreferKeepClearNode) && this.clearRect == ((PreferKeepClearNode) other).getRect();
|
|
}
|
|
|
|
@Nullable
|
|
public final Function1<LayoutCoordinates, Rect> getClearRect() {
|
|
return this.clearRect;
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public int hashCode() {
|
|
Function1<LayoutCoordinates, Rect> function1 = this.clearRect;
|
|
if (function1 != null) {
|
|
return function1.hashCode();
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public void inspectableProperties(@NotNull InspectorInfo inspectorInfo) {
|
|
inspectorInfo.setName("preferKeepClearBounds");
|
|
if (this.clearRect != null) {
|
|
inspectorInfo.getProperties().set("clearRect", this.clearRect);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.compose.ui.node.ModifierNodeElement
|
|
public void update(@NotNull PreferKeepClearNode node) {
|
|
node.setRect(this.clearRect);
|
|
}
|
|
}
|