Rabbit-R1/switch port/java/sources/androidx/compose/foundation/layout/PaddingValuesConsumingModifier.java
2024-05-21 17:08:36 -04:00

43 lines
3.1 KiB
Java

package androidx.compose.foundation.layout;
import androidx.compose.ui.platform.InspectorInfo;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
/* JADX INFO: Access modifiers changed from: package-private */
/* compiled from: WindowInsetsPadding.kt */
@Metadata(d1 = {"\u0000>\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\b\u0003\u0018\u00002\u00020\u0001B&\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0017\u0010\u0004\u001a\u0013\u0012\u0004\u0012\u00020\u0006\u0012\u0004\u0012\u00020\u00070\u0005¢\u0006\u0002\b\\u0006\u0002\u0010\tJ\u0010\u0010\n\u001a\u00020\u000b2\u0006\u0010\f\u001a\u00020\u000bH\u0016J\u0013\u0010\r\u001a\u00020\u000e2\b\u0010\u000f\u001a\u0004\u0018\u00010\u0010H\u0096\u0002J\b\u0010\u0011\u001a\u00020\u0012H\u0016R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0013"}, d2 = {"Landroidx/compose/foundation/layout/PaddingValuesConsumingModifier;", "Landroidx/compose/foundation/layout/InsetsConsumingModifier;", "paddingValues", "Landroidx/compose/foundation/layout/PaddingValues;", "inspectorInfo", "Lkotlin/Function1;", "Landroidx/compose/ui/platform/InspectorInfo;", "", "Lkotlin/ExtensionFunctionType;", "(Landroidx/compose/foundation/layout/PaddingValues;Lkotlin/jvm/functions/Function1;)V", "calculateInsets", "Landroidx/compose/foundation/layout/WindowInsets;", "modifierLocalInsets", "equals", "", "other", "", "hashCode", "", "foundation-layout_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes.dex */
public final class PaddingValuesConsumingModifier extends InsetsConsumingModifier {
private final PaddingValues paddingValues;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public PaddingValuesConsumingModifier(PaddingValues paddingValues, Function1<? super InspectorInfo, Unit> inspectorInfo) {
super(inspectorInfo, null);
Intrinsics.checkNotNullParameter(paddingValues, "paddingValues");
Intrinsics.checkNotNullParameter(inspectorInfo, "inspectorInfo");
this.paddingValues = paddingValues;
}
@Override // androidx.compose.foundation.layout.InsetsConsumingModifier
public WindowInsets calculateInsets(WindowInsets modifierLocalInsets) {
Intrinsics.checkNotNullParameter(modifierLocalInsets, "modifierLocalInsets");
return WindowInsetsKt.add(WindowInsetsKt.asInsets(this.paddingValues), modifierLocalInsets);
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (other instanceof PaddingValuesConsumingModifier) {
return Intrinsics.areEqual(((PaddingValuesConsumingModifier) other).paddingValues, this.paddingValues);
}
return false;
}
public int hashCode() {
return this.paddingValues.hashCode();
}
}