mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-26 17:12:31 -06:00
47 lines
2.9 KiB
Java
47 lines
2.9 KiB
Java
package androidx.compose.foundation;
|
|
|
|
import android.content.Context;
|
|
import android.util.AttributeSet;
|
|
import android.widget.EdgeEffect;
|
|
import io.sentry.Session;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: EdgeEffectCompat.kt */
|
|
@Metadata(d1 = {"\u00002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u0007\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0006\bÀ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0018\u0010\b\u001a\u00020\u00052\u0006\u0010\t\u001a\u00020\n2\b\u0010\u000b\u001a\u0004\u0018\u00010\fJ\u0012\u0010\r\u001a\u00020\u000e*\u00020\u00052\u0006\u0010\u000f\u001a\u00020\u0010J\u001a\u0010\u0011\u001a\u00020\u0004*\u00020\u00052\u0006\u0010\u0012\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\u0004J\u0012\u0010\u0014\u001a\u00020\u000e*\u00020\u00052\u0006\u0010\u0015\u001a\u00020\u0004R\u0015\u0010\u0003\u001a\u00020\u0004*\u00020\u00058F¢\u0006\u0006\u001a\u0004\b\u0006\u0010\u0007¨\u0006\u0016"}, d2 = {"Landroidx/compose/foundation/EdgeEffectCompat;", "", "()V", "distanceCompat", "", "Landroid/widget/EdgeEffect;", "getDistanceCompat", "(Landroid/widget/EdgeEffect;)F", "create", "context", "Landroid/content/Context;", Session.JsonKeys.ATTRS, "Landroid/util/AttributeSet;", "onAbsorbCompat", "", "velocity", "", "onPullDistanceCompat", "deltaDistance", "displacement", "onReleaseWithOppositeDelta", "delta", "foundation_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final class EdgeEffectCompat {
|
|
public static final EdgeEffectCompat INSTANCE = new EdgeEffectCompat();
|
|
|
|
private EdgeEffectCompat() {
|
|
}
|
|
|
|
public final EdgeEffect create(Context context, AttributeSet attrs) {
|
|
Intrinsics.checkNotNullParameter(context, "context");
|
|
return Api31Impl.INSTANCE.create(context, attrs);
|
|
}
|
|
|
|
public final float onPullDistanceCompat(EdgeEffect edgeEffect, float f, float f2) {
|
|
Intrinsics.checkNotNullParameter(edgeEffect, "<this>");
|
|
return Api31Impl.INSTANCE.onPullDistance(edgeEffect, f, f2);
|
|
}
|
|
|
|
public final void onAbsorbCompat(EdgeEffect edgeEffect, int i) {
|
|
Intrinsics.checkNotNullParameter(edgeEffect, "<this>");
|
|
edgeEffect.onAbsorb(i);
|
|
}
|
|
|
|
public final void onReleaseWithOppositeDelta(EdgeEffect edgeEffect, float f) {
|
|
Intrinsics.checkNotNullParameter(edgeEffect, "<this>");
|
|
if (edgeEffect instanceof GlowEdgeEffectCompat) {
|
|
((GlowEdgeEffectCompat) edgeEffect).releaseWithOppositeDelta(f);
|
|
} else {
|
|
edgeEffect.onRelease();
|
|
}
|
|
}
|
|
|
|
public final float getDistanceCompat(EdgeEffect edgeEffect) {
|
|
Intrinsics.checkNotNullParameter(edgeEffect, "<this>");
|
|
return Api31Impl.INSTANCE.getDistance(edgeEffect);
|
|
}
|
|
}
|